/* Keep text children read frequently large enough on smaller screens. */
.brand:has(.site-wordmark) {
  padding-inline: 4px;
  font-size: clamp(1.125rem, 1.9vw, 1.45rem);
  letter-spacing: -.025em;
  line-height: 1.2;
  transform: none;
  min-width: 0;
}
.site-wordmark { display: flex; flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere; }
.personalise summary { font-size: 1rem; }
.wallpaper-tools button, .wallpaper-tools #remove-wallpaper {
  font-size: .875rem;
  min-height: 34px;
  padding-block: 5px;
}
.wallpaper-tools p, .wallpaper-tools #wallpaper-status {
  font-size: .875rem;
  color: #6c594b;
  margin-top: 5px;
}

.page-heading p, .lesson-info > p, .mini-card .quiet, .transcript p,
.chat-message .message-body, .summary-card dl, .note-box { font-size: 1rem; }

.lesson-button strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.lesson-button small, .lesson-label, .lesson-footer .quiet {
  font-size: .875rem;
  color: #655449;
}
.lesson-label { letter-spacing: .06em; }
.mini-options button, .lesson-footer .primary-button, .case-card .primary-button,
.chat-choices .choice-chip { font-size: 1rem; }
.mini-options button, .chat-choices .choice-chip { min-height: 44px; }
.lesson-button .lesson-completed { flex: none; }
.lesson-button > span:nth-child(2) { min-width: 0; }
.chat-message .message-author, .chat-actions .hint-button, .chat-actions .quiet,
.back-link, .step-pill, .quiz-wrap #restart-quiz {
  font-size: .875rem;
}
.chat-actions { flex-wrap: wrap; gap: 4px 12px; }
.case-card p, .claim-entry p { font-size: 1rem; }
@media (max-width: 600px) {
  .brand:has(.site-wordmark) { font-size: 1rem; }
  .sidebar:not(:has(+ .home-view)) .brand:has(.site-wordmark) { max-width: calc(100% - 80px); }
  .lesson-list .lesson-button:nth-child(even):last-child { grid-column: auto; }
  .progress-steps { flex-wrap: wrap; }
  .progress-steps .step-pill { min-width: max-content; }
}
