/* PersonaScope 5.0 Phase 1: navigation wording and centered short UI text */

/* Main screen headings and their short introductions */
.section-heading {
  text-align: center !important;
}
.section-heading > p {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Navigation and action labels */
.button,
.side-menu button,
.lab-tab,
.library-toggle,
.quiz-back-button,
.lab-mini-button {
  text-align: center !important;
  justify-content: center;
}

/* Home: feature names sit in the visual center of each control */
#home .home-action-stack button {
  text-align: center !important;
}
#home .home-start-button {
  place-items: center !important;
}
#home .home-library-entry {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas: "title" !important;
  place-items: center !important;
  min-height: 64px;
  padding: 12px 42px !important;
  text-align: center !important;
}
#home .home-library-entry strong {
  grid-area: title !important;
  font-size: 15px;
  line-height: 1.35;
}
#home .home-library-entry .home-action-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
#home .home-learning-links button {
  place-content: center !important;
  text-align: center !important;
}
#home .home-theory-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

/* Library: only the short entry controls are centered. Articles remain left-aligned. */
.library-entry-heading,
.library-entry-grid button {
  text-align: center !important;
}
.library-entry-grid-v408 button b,
.library-entry-grid-v408 button span {
  padding-left: 22px;
  padding-right: 22px;
}
.library-entry-grid-v408 button::after {
  right: 14px;
}
.library-dialog,
.library-dialog p,
.library-dialog li,
.library-card,
.library-card p,
.library-card li,
.library-reading-guide,
.library-safety-note,
.library-control-card {
  text-align: left;
}

/* Psychology quiz: centered hub choices, readable question and explanation text. */
.quiz-hub-main-card {
  display: grid;
  align-content: center;
  text-align: center !important;
}
.quiz-hub-note,
.quiz-hub-safety-note,
.quiz-hub-subhead > div,
.quiz-topic-count,
.quiz-topic-empty {
  text-align: center;
}
.quiz-engine-question-card,
.quiz-engine-feedback,
.quiz-engine-review,
.quiz-engine-question-card h3,
.quiz-engine-feedback p,
.quiz-engine-review p,
.quiz-engine-review small,
.quiz-engine-choice {
  text-align: left;
}

/* Psychology lab: center short introductions, preserve analytical text alignment. */
.lab-intro-card,
.lab-compare-card > div:first-child,
.lab-research-intro {
  text-align: center;
}
.lab-slider-card,
.lab-trait-notes,
.lab-dynamic-grid,
.lab-caution,
.lab-reading-card,
.lab-example-list,
.lab-qa-list,
.lab-research-grid,
.lab-column-grid,
.lab-column-reader {
  text-align: left;
}

@media (max-width: 430px) {
  #home .home-library-entry {
    min-height: 58px;
  }
}
