/* The pages around the redesigned timer, the Eudaimonia question sequence, the account
   odds and ends, the partner-invitation ends and the Devise screens (2026-12-04).

   There is no screen for any of these in the hand-off package, so nothing here invents a
   layout: every block keeps its markup, its copy and its destinations and only adopts the
   type, colour and spacing of redesign.css. Three shared surfaces are re-skinned — the
   menu row, the progress bar and the modal panel — and each is scoped to the page class
   that asks for it, because the course pages, Profile, admin and lesson completion draw
   the same components and must not change.

   The values are the design's (redesign.css tokens), never a hand-picked number. */

/* These pages still render inside Pages::DefaultPageComponent, whose frame does not carry
   the `.rd` root: the design's sans is set once here so labels, pills and copy match the
   pages that do. */
.rd-omstart,
.rd-guided,
.rd-omshow,
.rd-omtags,
.rd-omdone,
.rd-omlist,
.rd-details__list,
.rd-eudwelcome,
.rd-omstep,
.rd-pass,
.rd-unsub,
.rd-terms,
.rd-invited,
.rd-invitee,
.rd-devise,
.rd-chats {
  font-family: var(--rd-sans);
  font-weight: 300;
}

/* ---------- Time to OM (`/oms/start`) ---------- */

.rd-omstart__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rd-space-xl);
  width: 100%;
}
.rd-omstart__actions {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-s);
  width: 100%;
}
/* The two quiet links sit on one row. At the design's link size (11px) each fits, so
   the pair never breaks a phrase across two lines. */
.rd-omstart__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--rd-space-m) var(--rd-space-l);
  width: 100%;
}
.rd-omstart__links .btn-tertiary {
  width: auto;
  padding-inline: 0;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* ---------- Guided OMs (`/om_timers/guided`) ---------- */

.rd-guided__lede {
  margin: 0;
  text-align: center;
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.25;
  color: var(--rd-ink-soft);
  text-wrap: pretty;
}
/* the "available after Intro to OM" line: a hairline note, not a peach panel */
.rd-guided__notice {
  padding: var(--rd-space-s) var(--rd-space-m);
  border: 1px solid var(--rd-hairline);
  border-radius: 2px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rd-ink-muted);
}
.rd-guided__rows {
  display: grid;
  gap: var(--rd-space-s);
}
/* The shared menu row on this page only: a hairline row with the glyph drawn in ochre
   instead of the peach tile, the way the Settings list is drawn. */
.rd-guided .rd-menu-row {
  padding: var(--rd-space-m) 0;
  border: 0;
  border-top: 1px solid var(--rd-hairline);
  border-radius: 0;
  background: none;
  box-shadow: none;
  transition: none;
}
.rd-guided .rd-menu-row:first-child {
  border-top: 0;
  padding-top: var(--rd-space-2xs);
}
.rd-guided .rd-menu-row:active {
  background: rgba(51, 45, 43, 0.04);
}
.rd-guided .rd-menu-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: none;
  color: var(--rd-ochre);
}
.rd-guided .rd-menu-row__title {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.12;
  color: var(--rd-ink);
}
.rd-guided .rd-menu-row__subtitle {
  margin-top: var(--rd-space-2xs);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--rd-ink-muted);
}
.rd-guided .rd-menu-row__arrow {
  color: var(--rd-ink-label);
}

/* ---------- One guided OM (`/om_timers/:id`) ---------- */

.rd-omshow__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rd-omshow__copy {
  width: 100%;
  margin-top: var(--rd-space-l);
}
.rd-omshow__line {
  margin: 0 0 var(--rd-space-s);
  font-family: var(--rd-serif);
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-omshow__actions {
  width: 100%;
  margin-top: var(--rd-space-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rd-space-m);
}
.rd-omshow__actions .btn-primary {
  width: auto;
  min-width: 160px;
}

/* ---------- Describe your OM (`/oms/:id/tags`) ---------- */

.rd-omtags__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rd-space-l);
  width: 100%;
}
.rd-omtags__time {
  width: 100%;
  text-align: center;
}
.rd-omtags__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--rd-space-xs);
}
/* the chip set: bone with one hairline, ink when chosen — not the teal outline */
.rd-omtags .btn-tag {
  padding: 9px 14px;
  border: 1px solid var(--rd-hairline);
  border-radius: 2px;
  background: transparent;
  color: var(--rd-ink);
  font-family: var(--rd-sans);
  font-size: 13.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  cursor: pointer;
}
.rd-omtags .btn-tag:hover {
  border-color: var(--rd-ink-muted);
}
.rd-omtags :checked + .btn-tag {
  border-color: var(--rd-ink);
  background: var(--rd-ink);
  color: var(--rd-bone);
}

/* ---------- The OM is done (`/oms/:id/complete`) ---------- */

.rd-omdone__tracker {
  width: 100%;
  padding: var(--rd-space-m) var(--rd-space-m) var(--rd-space-l);
  border: 1px solid var(--rd-hairline);
  border-radius: 2px;
  background: var(--rd-paper-white);
}
.rd-omdone__tracker-title {
  text-align: center;
  color: var(--rd-ink-label);
  letter-spacing: 0.22em;
}
.rd-omdone__week {
  margin-top: var(--rd-space-m);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rd-space-xs);
}
.rd-omdone__day {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rd-hairline);
  border-radius: 50%;
  font-family: var(--rd-serif);
  font-size: 17px;
  line-height: 1;
  color: var(--rd-ink-muted);
}
.rd-omdone__day.is-ommed {
  border-color: var(--rd-ink);
  background: var(--rd-ink);
  color: var(--rd-bone);
}
.rd-omdone__note {
  margin: 0;
  text-align: center;
  font-family: var(--rd-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--rd-ink-soft);
  text-wrap: pretty;
}
.rd-omdone__achievement {
  padding-top: var(--rd-space-l);
  font-family: var(--rd-serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
}
.rd-omdone__achievement b {
  font-weight: 500;
  color: var(--rd-ink);
}

/* ---------- The legacy Guided OMs list (`/oms/om_timers`) ---------- */

.rd-omlist__item {
  padding: var(--rd-space-s) 0;
}
.rd-omlist__item:first-child {
  padding-top: 0;
}

/* ---------- End OM? (`_end_timer_modal`) ---------- */

.rd-endmodal {
  text-align: center;
}
.rd-endmodal__title {
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
  color: var(--rd-ink);
}
.rd-endmodal__body {
  margin: var(--rd-space-s) 0 0;
  font-family: var(--rd-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--rd-ink-muted);
  text-wrap: pretty;
}
.rd-endmodal__action {
  margin-top: var(--rd-space-m);
}
.rd-endmodal__action:first-of-type {
  margin-top: var(--rd-space-l);
}
.rd-endmodal .btn-tertiary {
  display: inline-block;
}
/* The panel is Pages::ModalComponent's, shared with the achievement modal and the rest of
   the app, so it is re-skinned only for the dialog that carries this block inside it. */
#modal-panel:has(.rd-endmodal) {
  border: 1px solid var(--rd-hairline);
  border-radius: 2px;
  background: var(--rd-bone);
  box-shadow: none;
}
#modal-panel:has(.rd-endmodal) > div:last-child {
  padding: 0 var(--rd-space-m) var(--rd-space-l);
  background: none;
}

/* ---------- The Eudaimonia quiz: opening ---------- */

.rd-eudwelcome__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.rd-eudwelcome__copy {
  flex: 1 1 auto;
  width: 100%;
}
.rd-eudwelcome__copy > * {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 18px;
  line-height: 1.32;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-eudwelcome__copy > * + * {
  margin-top: var(--rd-space-m);
}
.rd-eudwelcome__start {
  flex: none;
  width: 100%;
  margin-top: var(--rd-space-xl);
}

/* ---------- The Eudaimonia quiz: one question ---------- */

/* The shared progress bar is a peach 1.5px pill everywhere else; here it is the design's
   1px line with the ochre fill. */
.rd-omstep .rd-progress {
  display: block;
}
.rd-omstep .rd-progress__track {
  display: block;
  height: 1px;
  border-radius: 0;
  background: var(--rd-hairline);
}
.rd-omstep .rd-progress__fill {
  height: 1px;
  border-radius: 0;
  background: var(--rd-ochre);
}
.rd-omstep__stage {
  margin-top: var(--rd-space-l);
  text-align: center;
  color: var(--rd-ink-label);
}
.rd-omstep__question {
  margin-top: var(--rd-space-s);
  text-align: center;
  font-family: var(--rd-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  color: var(--rd-ink);
  text-wrap: balance;
}
.rd-omstep__answers {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: var(--rd-space-l);
}
.rd-omstep__next {
  width: 100%;
  margin-top: var(--rd-space-m);
}
/* The answer choices are `questions/_likert` and friends' labels, which carry the app's
   `.profile-question-option`; the profile-step questionnaire draws the same class and keeps
   its own look. */
.rd-omstep .profile-question-option {
  display: block;
  margin-top: var(--rd-space-xs);
  padding: var(--rd-space-s) var(--rd-space-m);
  border: 1px solid var(--rd-hairline);
  border-radius: 2px;
  background: transparent;
  color: var(--rd-ink);
  font-family: var(--rd-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.rd-omstep .profile-question-option:active {
  background: rgba(51, 45, 43, 0.05);
}
.rd-omstep :checked ~ .profile-question-option {
  border-color: var(--rd-ink);
  background: var(--rd-ink);
  color: var(--rd-bone);
}
.rd-omstep .profile-question-options-container > div {
  text-align: left;
}

/* ---------- Your details (`/users/profile_details`) ---------- */

.rd-details__list {
  width: 100%;
}
.rd-details__row {
  padding: var(--rd-space-s) 0;
  border-top: 1px solid var(--rd-hairline);
}
.rd-details__row:first-child {
  padding-top: 0;
  border-top: 0;
}
.rd-details__label {
  color: var(--rd-ink-label);
}
.rd-details__value {
  margin-top: var(--rd-space-2xs);
  font-family: var(--rd-serif);
  font-size: 21px;
  line-height: 1.2;
  color: var(--rd-ink);
}
.rd-details__action {
  margin-top: var(--rd-space-xl);
}

/* ---------- Change password (`/users/change_password`) ---------- */

.rd-pass__title {
  margin-top: var(--rd-space-l);
}
.rd-pass__form {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-l);
  margin-top: var(--rd-space-m);
}
.rd-pass__field .rd-label,
.rd-devise__field .rd-label {
  display: block;
  margin-bottom: var(--rd-space-2xs);
  color: var(--rd-ink-label);
}

/* ---------- Unsubscribed (`/users/unsubscribed`) ---------- */

.rd-unsub__copy {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 18px;
  line-height: 1.32;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-unsub__action {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-s);
  width: 100%;
  margin-top: var(--rd-space-xl);
}

/* ---------- The terms gate (`/users/agree_to_terms`, `/users/agreed_to_terms`) ---------- */

.rd-terms__lede {
  padding: 0;
  margin: 0 0 var(--rd-space-l);
  font-family: var(--rd-serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--rd-ink);
  text-wrap: pretty;
}
.rd-terms__row {
  margin-top: var(--rd-space-l);
}
.rd-terms__copy {
  font-family: var(--rd-serif);
  font-size: 17.5px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
}
.rd-terms--done .rd-h2 {
  margin-top: var(--rd-space-l);
  text-align: center;
}

/* ---------- The invitation ends ---------- */

.rd-invited__copy {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 18px;
  line-height: 1.32;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-invited__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rd-space-s);
  width: 100%;
  margin-top: var(--rd-space-l);
}
.rd-invitee__copy > * {
  margin: 0;
  font-family: var(--rd-serif);
  font-size: 18px;
  line-height: 1.32;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-invitee__copy > * + * {
  margin-top: var(--rd-space-m);
}

/* ---------- Chat (`/chats`, `/chats/choose`) ---------- */

.rd-chats {
  width: 100%;
}
.rd-chats__faq {
  margin-top: var(--rd-space-l);
}
/* the TalkJS inbox mounts here; the height is the chat's own */
.rd-chats__inbox {
  margin-top: var(--rd-space-xs);
  height: 700px;
}
.rd-chats__loading {
  font-family: var(--rd-serif);
  font-size: 17px;
  color: var(--rd-ink-muted);
}

/* ---------- Devise (`app/views/devise/**`) ---------- */

.rd-devise__lede {
  margin: 0;
  text-align: center;
  font-family: var(--rd-serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
  text-wrap: pretty;
}
.rd-devise__strong {
  font-weight: 500;
  color: var(--rd-ink);
}
.rd-devise__h2 {
  margin: 0;
  text-align: center;
}
.rd-devise__form {
  width: 100%;
  margin-top: var(--rd-space-m);
}
.rd-devise__fields {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-m);
  width: 100%;
}
.rd-devise__hint {
  display: block;
  margin-top: var(--rd-space-2xs);
  font-family: var(--rd-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.25;
  color: var(--rd-ink-muted);
}
.rd-devise__value {
  font-family: var(--rd-serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--rd-ink);
}
.rd-devise__submit {
  width: 100%;
  margin-top: var(--rd-space-s);
}
.rd-devise__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rd-space-s);
  width: 100%;
  margin-top: var(--rd-space-l);
}
.rd-devise__terms {
  display: flex;
  align-items: flex-start;
  gap: var(--rd-space-xs);
  text-align: left;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--rd-ink-soft);
}
.rd-devise__check {
  flex: none;
  margin-top: 3px;
}
.rd-devise__promo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--rd-space-2xs);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rd-devise__section {
  margin-top: var(--rd-space-2xl);
  color: var(--rd-ink-label);
}
.rd-devise__copy {
  margin-top: var(--rd-space-s);
  font-family: var(--rd-serif);
  font-size: 17px;
  line-height: 1.3;
  color: var(--rd-ink-reading);
}
