/* ── Credential seal grid ────────────────────────────────── */
.ha-cred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 16px;
}

.ha-cred-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Hero inline credential strip ────────────────────────── */
.ha-hero-cred-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .ha-cred-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ha-hero-cred-strip {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .ha-cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Seal anchor (credentials case → explainer page) ─────────── */
.ha-cred-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.ha-cred-anchor:hover { color: inherit; }

/* ── Badge tooltip ───────────────────────────────────────────── */
.ha-tip {
  position: relative;
  display: inline-flex;
  cursor: help;
  border-radius: 999px;
  outline: none;
}
.ha-tip:focus-visible {
  box-shadow: 0 0 0 2px var(--color-brand), 0 0 0 4px rgba(255,255,255,0.6);
}
.ha-tip__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 240px;
  padding: 9px 12px;
  background: #15233A;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  font-family: 'DM Sans', system-ui, sans-serif;
  text-align: left;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 50;
}
.ha-tip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #15233A;
}
.ha-tip__bubble strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.ha-tip__blurb {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
.ha-tip:hover .ha-tip__bubble,
.ha-tip:focus .ha-tip__bubble,
.ha-tip:focus-within .ha-tip__bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .ha-tip__bubble { transition: none; }
}

/* ── Dashboard: section eyebrow ──────────────────────────────── */
.ha-cred-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
}

/* ── Dashboard: earned grid (76px, tighter gap) ──────────────── */
.ha-cred-grid--dash {
  gap: 26px 14px;
}

/* ── Dashboard: progress card ────────────────────────────────── */
.ha-progress-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 6px 22px;
  margin-bottom: 30px;
}

.ha-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
}

.ha-progress-row:last-child {
  border-bottom: none;
}

.ha-progress-info {
  flex: 1;
  min-width: 0;
}

.ha-progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  gap: 12px;
}

.ha-progress-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-ink);
  flex-shrink: 0;
}

.ha-progress-hint {
  font-size: 12px;
  color: var(--color-mute);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  white-space: nowrap;
  text-align: right;
}

.ha-progress-bar-track {
  height: 6px;
  background: var(--color-tint);
  border-radius: 999px;
  overflow: hidden;
}

.ha-progress-bar-fill {
  height: 100%;
  background: var(--color-brand);
  border-radius: 999px;
}

/* ── Dashboard: readership panel ─────────────────────────────── */
.ha-readership-panel {
  background: var(--color-tint);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ha-readership-info {
  flex: 1;
  min-width: 0;
}

.ha-readership-tier {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 3px;
}

.ha-readership-text {
  font-size: 13px;
  color: var(--color-deep);
  line-height: 1.6;
}

.ha-readership-next {
  text-align: center;
  flex-shrink: 0;
}

.ha-readership-next-label {
  font-size: 11px;
  color: var(--color-mute);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.ha-readership-next-value {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--color-mute);
}

@media (max-width: 600px) {
  .ha-readership-panel {
    flex-wrap: wrap;
  }

  .ha-readership-next {
    width: 100%;
    text-align: left;
  }
}
