/*
 * main.css — Global base styles for BloodSync.
 *
 * Minimal functional styles only — enough for testing.
 * Design pass happens in Phase 4.
 *
 * Covers: reset, body, shared button classes, shared form elements,
 * feedback elements (error, success), toast container, modal overlay.
 *
 * REDESIGN NOTE (this session): navbar + sidebar visual system rebuilt.
 * Everything outside those two sections (buttons, forms, toasts, modal,
 * tables, skeletons, error boundary) is untouched. New design tokens are
 * declared in :root and used ONLY by the navbar/sidebar rules below —
 * nothing else in the file was switched over, to keep this pass scoped.
 */

/* ── Design tokens (navbar/sidebar only, this session) ──────────────── */
:root {
  --bs-red:          #C0392B;
  --bs-red-dark:     #9C2E22;
  --bs-red-tint:     #FBEAE7;
  --bs-red-tint-2:   #F5D6D0;
  --bs-ink:          #1C1B1F;
  --bs-ink-soft:     #6B6B72;
  --bs-line:         #E4E1DC;
  --bs-paper:        #FFFFFF;
  --bs-surface:      #FCFCFB;

  --bs-chip-admin:        #6B7280;
  --bs-chip-admin-tint:   #EEF0F2;
  --bs-chip-staff:        #C0392B;
  --bs-chip-staff-tint:   #FBEAE7;
  --bs-chip-volunteer:      #2F8F82;
  --bs-chip-volunteer-tint: #E7F4F2;
  --bs-chip-phleb:          #5B5FC7;
  --bs-chip-phleb-tint:     #EDEEFA;
  --bs-chip-requestor:      #B8860B;
  --bs-chip-requestor-tint: #FBF2DE;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ────────────────────────────────────────────────────────── */
body {
  font-family: sans-serif;
  font-size: 14px;
  color: #111;
  background: #f5f5f5;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Shared buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 8px 16px;
  background: #c00;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  background: #eee;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-danger {
  display: inline-block;
  padding: 8px 16px;
  background: #c00;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn-retry {
  display: inline-block;
  padding: 6px 14px;
  background: #eee;
  color: #111;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
}

/* Modifier — applied alongside .btn-primary or .btn-secondary */
.btn-full-width {
  width: 100%;
  display: block;
  text-align: center;
}

/* Modifier — applied alongside .btn-primary or .btn-secondary for a
   smaller footprint (e.g. per-card action buttons). notifications.css
   already has its own .btn-xs for the "Mark read" button — this is a
   slightly larger step, added here (not a feature CSS file) since it's
   a generic reusable size, same reasoning as .btn-full-width above. */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ── Shared form elements ────────────────────────────────────────── */

/* Legacy pattern (.field > label + input) — kept for existing pages */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid #c00;
  outline-offset: 1px;
}

/* Current pattern (.form-group > .form-label + .form-input) */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-input:focus {
  outline: 2px solid #c00;
  outline-offset: 1px;
}

/* ── Field errors ────────────────────────────────────────────────── */
.field-error {
  display: block;
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
}

.field-error-hidden {
  display: none;
}

/* ── Shared modal field patterns ────────────────────────────────── */
.modal-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.modal-textarea:focus {
  outline: 2px solid #c00;
  outline-offset: 1px;
}

.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
}

.detail-list dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
}

.detail-list dd {
  font-size: 0.88rem;
  color: #111;
}

/* ── Shared data table ──────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.data-table th {
  font-weight: 600;
  background: #f8f8f8;
  color: #444;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

/* ── Page header ─────────────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.page-header--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header--with-action h1 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

/* ── Toast (toast.js) ────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 13px;
  min-width: 260px;
  max-width: 360px;
}

.toast-success { border-color: #4caf50; }
.toast-error   { border-color: #c00;    }
.toast-warning { border-color: #ff9800; }
.toast-info    { border-color: #2196f3; }

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  flex-shrink: 0;
}

.toast-hiding {
  opacity: 0;
  transition: opacity 0.3s;
}

/* ── Modal (modal.js) ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal-overlay.modal-open {
  display: flex;
}

.modal-dialog {
  background: #fff;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  margin: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.modal-body {
  padding: 20px;
  font-size: 14px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid #eee;
}

/* ── Skeleton (skeleton.js) ──────────────────────────────────────── */
.skeleton-item {
  background: #eee;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 12px;
}

.skeleton-line {
  height: 12px;
  background: #ddd;
  border-radius: 2px;
  margin-bottom: 6px;
}

.skeleton-line-wide   { width: 100%; }
.skeleton-line-medium { width: 65%;  }
.skeleton-line-narrow { width: 40%;  }

.skeleton-table-row {
  display: flex;
  gap: 12px;
  padding: 10px;
}

.skeleton-cell {
  flex: 1;
  height: 14px;
  background: #ddd;
  border-radius: 2px;
}

.skeleton-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  background: #ddd;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-lines { flex: 1; }

/* ── Error boundary (errorBoundary.js) ───────────────────────────── */
.error-boundary {
  padding: 24px;
  text-align: center;
  color: #666;
}

.error-boundary-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

.error-boundary-message {
  font-size: 14px;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR — redesigned this session
   ═══════════════════════════════════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: var(--bs-paper);
  border-bottom: 1px solid var(--bs-line);
  height: 56px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#navbar.navbar-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 6px 18px rgba(28,27,31,0.06);
}

/* Icon glyphs (layouts/icons.js output) */
.bs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

/* ── Brand ───────────────────────────────────────────────────────── */
.navbar-brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-word {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--bs-ink);
}

/* ── Icon buttons + tooltips ─────────────────────────────────────── */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--bs-ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--bs-red-tint);
  color: var(--bs-red-dark);
  outline: none;
}

.has-tip {
  --tip-offset: 10px;
}

.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bs-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 250;
}

.has-tip:hover::after,
.has-tip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Right cluster ───────────────────────────────────────────────── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-notif-link {
  text-decoration: none;
}

.notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--bs-red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  border: 2px solid var(--bs-paper);
}

.notif-badge-hidden {
  display: none;
}

/* ── User block ──────────────────────────────────────────────────── */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--bs-line);
}

.navbar-profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.navbar-profile-link:hover,
.navbar-profile-link:focus-visible {
  background: var(--bs-red-tint);
  outline: none;
}

.navbar-avatar-wrap {
  display: inline-flex;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bs-paper), 0 0 0 3px var(--bs-line);
  transition: box-shadow 0.15s ease;
}

.navbar-profile-link:hover .navbar-avatar-wrap,
.navbar-profile-link:focus-visible .navbar-avatar-wrap {
  box-shadow: 0 0 0 2px var(--bs-paper), 0 0 0 3px var(--bs-red);
}

.navbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.navbar-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bs-red-tint);
  color: var(--bs-red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.navbar-name-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.navbar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-ink);
  white-space: nowrap;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  color: var(--bs-chip-staff);
  white-space: nowrap;
}

.role-chip--admin        { color: var(--bs-chip-admin); }
.role-chip--staff        { color: var(--bs-chip-staff); }
.role-chip--volunteer    { color: var(--bs-chip-volunteer); }
.role-chip--phlebotomist { color: var(--bs-chip-phleb); }
.role-chip--requestor    { color: var(--bs-chip-requestor); }

.btn-logout {
  /* legacy selector kept in case any other stylesheet still targets it —
     #btn-logout is now visually an .icon-btn, see icon-btn rules above */
  border: none;
}

/* ── Hamburger (mobile only) ─────────────────────────────────────── */
.navbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-right: 4px;
  color: var(--bs-ink);
}

.navbar-hamburger:hover {
  background: var(--bs-red-tint);
}

.hamburger-glyph {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-hamburger--open .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-hamburger--open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger--open .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR — redesigned this session
   ═══════════════════════════════════════════════════════════════════ */

#sidebar {
  position: fixed;
  top: 56px;       /* sits flush below the fixed navbar */
  left: 0;
  bottom: 0;
  width: 224px;
  padding: 18px 12px 18px;
  background: var(--bs-surface);
  border-right: 1px solid var(--bs-line);
  overflow-y: auto;
  z-index: 100;
}

.sidebar-section {
  margin-bottom: 22px;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bs-ink-soft);
  margin: 0 8px 6px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Flat links ──────────────────────────────────────────────────── */
.sidebar-item {
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bs-ink);
  transition: background 0.12s ease, color 0.12s ease;
}

.sidebar-link .bs-icon {
  color: var(--bs-ink-soft);
  transition: color 0.12s ease;
}

.sidebar-link:hover {
  background: var(--bs-red-tint);
  color: var(--bs-red-dark);
}

.sidebar-link:hover .bs-icon {
  color: var(--bs-red-dark);
}

.sidebar-link.sidebar-active {
  background: var(--bs-red-tint-2);
  color: var(--bs-red-dark);
  font-weight: 700;
}

.sidebar-link.sidebar-active .bs-icon {
  color: var(--bs-red-dark);
}

/* Left accent bar for the active item, hugging the sidebar's own edge */
.sidebar-item-active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--bs-red);
}

/* ── Collapsible group card ─────────────────────────────────────── */
.sidebar-group-item {
  list-style: none;
}

.sidebar-group {
  display: block;
  background: var(--bs-paper);
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-group-active {
  border-color: var(--bs-red-tint-2);
}

.sidebar-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bs-ink);
  cursor: pointer;
  user-select: none;
}

.sidebar-group-label::-webkit-details-marker { display: none; }
.sidebar-group-label::marker                 { display: none; }

.sidebar-group-label-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-group-label .bs-icon:first-child {
  color: var(--bs-ink-soft);
}

.sidebar-group-chevron {
  color: var(--bs-ink-soft);
  transition: transform 0.15s ease;
}

.sidebar-group[open] .sidebar-group-chevron {
  transform: rotate(180deg);
}

.sidebar-group-active > .sidebar-group-label {
  color: var(--bs-red-dark);
}

.sidebar-group-active > .sidebar-group-label .bs-icon {
  color: var(--bs-red-dark);
}

.sidebar-group-links {
  list-style: none;
  padding: 2px 8px 8px;
  border-top: 1px solid var(--bs-line);
  margin-top: 1px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 6px;
}

.sidebar-child { position: relative; }

.sidebar-link--nested {
  padding: 6px 8px;
  font-size: 12.5px;
}

.sidebar-child .sidebar-item-active::before,
.sidebar-child.sidebar-item-active::before {
  left: -4px;
  top: 4px;
  bottom: 4px;
}

/* ── Step track variant (Blood Drive Workflow group) ────────────── */
.sidebar-step-track {
  list-style: none;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--bs-line);
  margin-top: 1px;
}

.step-item {
  position: relative;
  padding-left: 2px;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 26px;
  bottom: -2px;
  width: 2px;
  background: var(--bs-line);
}

.step-item-active:not(:last-child)::after {
  background: var(--bs-red-tint-2);
}

.step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bs-ink);
  transition: background 0.12s ease, color 0.12s ease;
}

.step-link:hover {
  background: var(--bs-red-tint);
  color: var(--bs-red-dark);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bs-surface);
  border: 1.5px solid var(--bs-line);
  color: var(--bs-ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  z-index: 1;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.step-link.sidebar-active {
  background: var(--bs-red-tint-2);
  color: var(--bs-red-dark);
  font-weight: 700;
}

.step-link.sidebar-active .step-num {
  background: var(--bs-red);
  border-color: var(--bs-red);
  color: #fff;
}

/* ── Page layout shell ───────────────────────────────────────────── */
.page-shell {
  display: flex;
  padding-top: 56px;   /* clear the fixed navbar */
}

.page-content {
  flex: 1;
  padding: 24px;
  margin-left: 224px;  /* clear the fixed sidebar */
  min-width: 0;        /* prevent flex children from overflowing */
}

/* ── App shell reveal pattern ────────────────────────────────────── */
body.app-loading #navbar,
body.app-loading #sidebar,
body.app-loading .page-content {
  visibility: hidden;
  opacity: 0;
}

body.app-ready #navbar,
body.app-ready #sidebar,
body.app-ready .page-content {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* ── Generic hidden utility ──────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Sidebar backdrop (navbar.js) ────────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 31, 0.45);
  backdrop-filter: blur(1.5px);
  z-index: 150;
}

/* ── Mobile shell ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .navbar-hamburger {
    display: inline-flex;
  }

  .navbar-name-block {
    display: none; /* avatar + hamburger + logout is enough identity on narrow screens */
  }

  .navbar-user {
    border-left: none;
    padding-left: 0;
    margin-left: 2px;
  }

  .navbar-profile-link {
    padding: 4px;
  }

  #sidebar {
    width: 82vw;
    max-width: 300px;
    z-index: 200; /* above the backdrop (150) */
    border-right: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 4px 0 24px rgba(28, 27, 31, 0.12);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.sidebar-open #sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  body.sidebar-open {
    overflow: hidden; /* prevent background scroll while the drawer is open */
  }

  .page-content {
    margin-left: 0;
  }

  /* Tooltips are a hover affordance — pointless (and can trap focus
     styling oddly) on touch, so suppress them below the breakpoint. */
  .has-tip::after {
    display: none;
  }
}