/**
 * Olowo sentence case (Studio spec)
 * Loaded last in <head> so these !important rules override every uppercase
 * transform in the app (theme CSS, page-level <style> blocks, and inline
 * styles). Covered elements render in title case: the first letter of every
 * word is capitalised, everything else is shown as authored (usually small).
 *
 * User-entered values (inputs, textareas, selects), icon glyphs, code and
 * avatar initials are left untouched, and acronyms such as VAT/VRN/GBP keep
 * their capitalisation because they never run through a transform here.
 */

/* -- Title case: capitalise the first letter of each word -- */
.sentence-case,
.pf-nav-link,
.pf-mobile-nav-link,
.pf-bottom-nav-label,
.pf-pill,
.pf-mobile-nav-section-label,
.text-nav-label,
.button,
.btn,
.pf-btn,
.modal-btn,
button,
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main .form-label,
main label.form-label,
.form-card .form-label,
.form-page-title,
.txn-title,
.section-title,
.prop-stat-label,
.date-group-header,
.pf-stat-label,
.vat-box-header,
.vat-summary-title,
.pf-flash-error,
.pf-flash-success,
.pf-launcher-title,
.pf-launcher-subtitle,
.form-section-title,
.dash-header-search__group-title,
.dash-header-search__result-tag,
.debit-workspace__title,
.credit-workspace__title,
.uppercase-tracking,
.dash-balance-acc-heading,
/* .dash-balance-basis, */
.dash-balance-cur-fx,
.dash-balance-cur-name,
.dash-balance-cur-row-label,
.dash-balance-cur-net-label,
.dash-balance-cur-io-label,
.dash-balance-act-label,
.balance-period-dialog-title,
.balance-period-dialog-sub,
.balance-period-option-label,
.balance-period-option-desc,
.balance-period-loading,
.dash-account-card-bank,
.dash-account-card-label,
.dash-account-card-tag,
.dash-accounts-empty-title,
.dash-accounts-empty-text,
.dash-accounts-manage,
.dash-accounts-quicklink-label,
.dash-activity-card__title,
.dash-activity-card__subtitle,
.dash-activity-group__day,
.dash-activity-group__balance,
.dash-activity-show-more,
.dash-deadline-card__title,
.ol-item-card__title,
.dash-deadline-card__due,
.ol-item-card__due,
.dash-deadlines-empty,
.dash-detail-grid__label,
.ol-fact-grid__label,
.dash-detail-grid__value,
.ol-fact-grid__value,
.dash-project-card__title,
.dash-project-card__description,
.dash-project-card__due,
.dash-project-card__status,
.dash-project-card__budget-label,
.dash-project-card__budget-spent,
.dash-project-card__tasks-title,
.dash-projects-empty,
.dash-section__title,
.dash-section__manage,
.dash-card-actions__btn,
.ol-card-actions__btn,
.dash-step-row__label,
.uppercase-all {
  /* text-transform: capitalize !important; */
  text-transform: none !important;
}

/* Reset uppercase letter-spacing where title case applies */
main .form-label,
main label.form-label,
.form-card .form-label,
.section-title,
.prop-stat-label,
.date-group-header,
.pf-stat-label,
.vat-box-header,
.vat-summary-title,
.form-section-title,
.text-nav-label,
.pf-mobile-nav-section-label,
.button,
.btn,
.pf-btn,
.modal-btn,
button,
.dash-header-search__group-title,
.dash-header-search__result-tag,
.debit-workspace__title,
.credit-workspace__title,
.uppercase-tracking {
  letter-spacing: normal !important;
}

/* Preserve user-entered and special-case text */
input,
textarea,
select,
option,
.material-symbols-outlined,
.numerical-grey,
[class*="font-mono"],
code,
pre,
.lowercase-all {
  text-transform: none !important;
}

/* The Projects section is specified in true sentence case: the project blurb,
   its step labels and its card actions read as written rather than title-cased.
   Scoped to .dash-projects so the same classes keep title case in Deadlines. */
.dash-projects .dash-project-card__description,
.dash-projects .dash-project-card__tasks-title,
.dash-projects .dash-step-row__label,
.dash-projects .dash-card-actions__btn {
  text-transform: none !important;
}
