/* HMS-450 — attendee help page (Figma 516:5528 nav row). */

.portal-help {
  /* HMS-1601 — same full-canvas frame as the rest of the portal (Figma's
     32px margins on the 1920 canvas); the grid auto-fits below so cards
     keep a readable width instead of stretching across it. */
  max-width: 120rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

@media (max-width: 40rem) {
  .portal-help { padding-inline: 1rem; }
}

.portal-help__title {
  font-size: 1.5rem;
  margin: 0 0 0.375rem;
}

.portal-help__intro {
  color: var(--wa-color-text-quiet);
  margin: 0 0 1.5rem;
}

.portal-help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .portal-help__grid {
    /* auto-fit keeps each card near ~22rem minimum and fills the row —
       2 cols on tablets, 4-5 on the widened desktop frame. */
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  }
}

.portal-help__card {
  border: 1px solid var(--wa-color-surface-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  background: var(--wa-color-surface-default);
}

.portal-help__card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.portal-help__card p {
  color: var(--wa-color-text-quiet);
  font-size: 0.875rem;
  margin: 0 0 0.875rem;
}

.portal-help__link {
  color: var(--wa-color-brand);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.portal-help__link:hover {
  text-decoration: underline;
}

.portal-help__link:focus-visible,
.portal-help__assistant:focus-visible {
  outline: 2px solid var(--wa-color-brand);
  outline-offset: 2px;
  border-radius: 2px;
}
