/* Access Quest Semantic Classes */

.aq-error {
  color: #d32f2f;
}

.aq-warning {
  color: #f57c00;
}

.aq-success {
  color: #388e3c;
}

.aq-info {
  color: #1976d2;
}

.aq-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.aq-hidden {
  display: none;
}

.aq-active {
  font-weight: 600;
}

.aq-empty {
  opacity: 0.7;
  font-style: italic;
}

/* Header account control */

.aq-account {
  position: relative;
}

.aq-account__toggle {
  cursor: pointer;
  list-style: none;      /* kill the default <summary> triangle */
  white-space: nowrap;
}

.aq-account__toggle::-webkit-details-marker {
  display: none;
}

.aq-account__toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  border: 0.3em solid transparent;
  border-top-color: currentColor;
  transform: translateY(0.15em);
}

.aq-account[open] .aq-account__toggle::after {
  transform: translateY(-0.15em) rotate(180deg);
}

/* Colours and radius come from the theme's presets, so whatever the producer sets
   in Global Styles reaches this menu. The literals are only fallbacks for when a
   preset isn't defined. */
.aq-account__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 100;
  min-width: 11rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--wp--preset--color--contrast, currentColor);
  border-radius: var(--wp--custom--radius--medium, 0.4rem);
  background: var(--wp--preset--color--base, Canvas);
  color: var(--wp--preset--color--contrast, CanvasText);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.15);
}

.aq-account__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.aq-account__list a:hover,
.aq-account__list a:focus {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Onboarding */

.aq-onboarding__lede {
  max-width: 46ch;
}

.aq-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 1.5rem 0;
}

.aq-interest {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}

.aq-interest:has(input:checked) {
  background: currentColor;
}

.aq-interest:has(input:checked) span {
  color: Canvas;
}

.aq-onboarding__custom {
  display: block;
  margin-bottom: 1.5rem;
}

.aq-onboarding__custom span {
  display: block;
  margin-bottom: 0.35rem;
}

.aq-onboarding__custom input {
  width: 100%;
  max-width: 32rem;
}

/* Dashboard */

.aq-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
}

.aq-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.15rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
}

.aq-stat__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.aq-stat__label {
  font-weight: 600;
}

.aq-stat__note {
  font-size: 0.85em;
  opacity: 0.7;
}

.aq-dashboard__section {
  margin-bottom: 2rem;
}

.aq-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aq-tag {
  padding: 0.3rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9em;
}

.aq-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
