/* =========================================================
   Reflective Journals – Layers platform
   Loaded only on the page with [reflective_journal]
   ========================================================= */

.rj-journal [hidden] {
  display: none !important;
}

/* Panchu edits-2026-11-20: "negative" light orange for Not approved and Delete.
   Set on :root because the Not approved pop-up is moved outside .rj-journal.
   Text uses the darker shade so it stays readable (contrast 4.6:1 or more). */
/* Panchu edits-2026-11-20: the accessibility widget (DJ-Accessibility, round
   button bottom-right) leaves an invisible fixed box (about 470 x 670 px) over
   the right side of the screen, even while its panel is closed. It caught
   every click there: Private / Publish, the "After training" ratings, View /
   Edit / Delete in My Journal, Publish / Unpublish on the dashboard. The box
   itself now lets clicks through; its round button still works, and the
   panel switches clicks on and off by itself when it opens and closes.
   Not scoped to .rj-journal: the widget sits outside it. This file loads on
   the journal and dashboard pages only - for the rest of the site the same
   two rules belong in the child theme. */
section.djacc {
  pointer-events: none;
}

section.djacc .djacc__openbtn {
  pointer-events: auto;
}

:root {
  --rj-neg-bg: #fff1e6;      /* light orange fill */
  --rj-neg-border: #f08c3a;  /* light orange border / bar */
  --rj-neg-text: #c2410c;    /* orange text */
}

/* Panchu edits-2026-11-20: parts of the YOOtheme layout marked
   "rj-landing-only" (the "How to use it" text) are hidden while editing or
   reading an entry. The body class comes from the plugin. */
body.rj-view-edit .rj-landing-only,
body.rj-view-view .rj-landing-only,
body.rj-view-progress .rj-landing-only {
  display: none !important;
}

.rj-meta {
  font-size: 13px;
  color: #666;
}

.rj-help {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.rj-empty {
  color: #666;
}

.rj-back {
  margin-top: 40px;
}

.rj-back a {
  color: #5b57bc;
  font-weight: 600;
}

/* Panchu edits-2026-10-14: underline slides in from left to right on hover.
   Back links + View / Edit / Delete in My Journal. currentColor, so Delete
   gets a red line. */
.rj-back a,
.rj-my-links a {
  padding-bottom: 2px;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: all .35s ease-in-out; /* Panchu edits-2026-10-16: all (was background-size only) */
}

.rj-back a:hover,
.rj-back a:focus,
.rj-my-links a:hover,
.rj-my-links a:focus {
  /* Each link keeps its own colour on hover (the theme would change it) */
  color: #5b57bc;
  text-decoration: none;
  background-size: 100% 2px;
}

/* Panchu edits-2026-10-16: Delete keeps its colour on hover (only the underline slides in).
   Panchu edits-2026-11-20: orange (was black). */
.rj-my-links a.rj-delete:hover,
.rj-my-links a.rj-delete:focus {
  color: var(--rj-neg-text);
}


/* ---------- Buttons ---------- */

.rj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 40px;
}

.rj-button {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 5px !important;
  font-weight: 600;
  text-transform: none;
  transition: all .35s ease-in-out !important;
}

/* Panchu edits-2026-10-14: every journal button now behaves like the site's
   uk-button-default - white with a black border, purple on hover. The
   purple-by-default .rj-button--primary styling was removed; the class is
   still in the markup but has no effect. */
.rj-button:hover,
.rj-button:focus {
  background-color: #5b57bc !important;
  border-color: #5b57bc !important;
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
}


/* ---------- Intro ---------- */

.rj-intro h3 {
  margin-top: 30px;
}

.rj-steps li {
  margin-bottom: 5px;
}

.rj-principle {
  height: 100%;
  box-sizing: border-box;
  padding: 20px 25px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
}

.rj-principle h4 {
  margin: 0 0 8px;
  color: #5b57bc;
  font-weight: 700;
}

.rj-principle p {
  margin: 0;
}

.rj-login-prompt {
  margin: 30px 0;
  padding: 30px;
  text-align: center;
  background-color: #f2f2f2;
  border-radius: 5px;
}


/* ---------- Published entries grid ---------- */

.rj-list-title {
  margin: 0 0 25px;
}

.rj-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 25px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
  color: #000 !important;
  text-decoration: none !important;
  transition: all .35s ease-in-out;
}

.rj-card:hover {
  border-color: #5b57bc;
  transform: translateY(-3px);
  /* Panchu edits-2026-10-16: softer, more visible shadow (was 0 5px 15px rgba(0,0,0,.08),
     hardly visible on the site's light purple background) */
  box-shadow: 0 10px 25px rgba(91, 87, 188, .18);
}

.rj-card-title {
  margin: 8px 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.rj-card-excerpt {
  flex: 1;
  margin: 0 0 20px;
  color: #444;
}

.rj-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.rj-card-footer .rj-read {
  color: #5b57bc;
  white-space: nowrap;
}

.rj-pagination {
  margin-top: 40px;
}


/* ---------- Status badges ---------- */

.rj-status {
  display: inline-block;
  padding: 3px 12px;
  border: 2px solid;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.rj-status--publish {
  background-color: #5b57bc;
  border-color: #5b57bc;
  color: #fff;
}

.rj-status--pending {
  background-color: #fff;
  border-color: #5b57bc;
  color: #5b57bc;
}

.rj-status--private {
  background-color: #f2f2f2;
  border-color: #000;
  color: #000;
}

/* Panchu edits-2026-10-16: Not approved badge styled like Private (was red).
   Panchu edits-2026-11-20: same style, light orange. */
.rj-status--draft {
  background-color: var(--rj-neg-bg);
  border-color: var(--rj-neg-border);
  color: var(--rj-neg-text);
}

/* Panchu edits-2026-11-20: autosaved, not finished yet - like Private, dashed */
.rj-status--unfinished {
  background-color: #f2f2f2;
  border-color: #000;
  border-style: dashed;
  color: #000;
}


/* ---------- My Journal ---------- */

.rj-my-list {
  display: grid;
  gap: 12px;
}

.rj-my-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 25px;
  padding: 18px 22px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
  transition: all .35s ease-in-out; /* Panchu edits-2026-10-16 */
}

/* Panchu edits-2026-10-16: soft shadow on hover, same as the shared entry cards */
.rj-my-item:hover {
  box-shadow: 0 10px 25px rgba(91, 87, 188, .18);
}

.rj-my-main {
  flex: 1 1 260px;
}

.rj-my-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.rj-my-title a {
  color: #000;
  transition: all .35s ease-in-out; /* Panchu edits-2026-10-16 */
}

.rj-my-title a:hover {
  color: #5b57bc;
  text-decoration: none;
}

.rj-rename-toggle {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #666;
  cursor: pointer;
  vertical-align: middle;
  transition: all .35s ease-in-out; /* Panchu edits-2026-10-16: all (was color only) */
}

.rj-rename-toggle:hover {
  color: #5b57bc;
}

.rj-rename-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rj-rename-form input[type="text"] {
  flex: 1 1 220px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #f2f2f2;
  font: inherit;
  transition: all .35s ease-in-out;
}

.rj-rename-form input[type="text"]:focus {
  border-color: #5b57bc;
  background-color: #fff;
  outline: 0;
}

.rj-my-links {
  display: flex;
  gap: 15px;
  font-size: 14px;
  font-weight: 600;
}

.rj-my-links a {
  color: #5b57bc;
}

/* Panchu edits-2026-10-16: Delete is black (was red).
   Panchu edits-2026-11-20: orange (was black). */
.rj-my-links a.rj-delete {
  color: var(--rj-neg-text);
}


/* ---------- Single entry ---------- */

.rj-entry-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #000;
}

.rj-entry-title {
  margin: 0 0 8px;
}

.rj-entry-own {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.rj-section {
  margin-bottom: 40px;
}

.rj-section-title {
  margin: 0 0 15px;
  color: #5b57bc;
  font-size: 20px;
  font-weight: 700;
}

.rj-context {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
}

.rj-context > div {
  padding: 12px 15px;
  border-radius: 5px;
  background-color: #f2f2f2;
}

.rj-context dt {
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

.rj-context dd {
  margin: 0;
  font-weight: 600;
}

.rj-answer {
  margin-bottom: 22px;
}

.rj-question {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.rj-question-sub {
  margin: -2px 0 6px;
  font-size: 14px;
  font-style: italic;
  color: #666;
}

.rj-answer-text p {
  margin: 0 0 10px;
}

.rj-sa-table {
  border: 2px solid #000;
}

.rj-sa-table th {
  background-color: #f2f2f2;
  color: #000;
}

.rj-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rj-rating b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: #5b57bc;
  color: #fff;
  font-size: 13px;
}


/* ---------- Single entry: notebook page ----------
   Panchu edits-2026-10-14: the entry is drawn as a page of a ring-bound
   notebook - paper, binder holes, a margin line, answers on note cards
   and highlighted section titles. CSS only; the markup from
   rj_entry_html() is unchanged. Answers keep the site font on purpose: a
   handwriting font loaded from Google would send visitors' IPs to Google
   (GDPR), so it would have to be self-hosted. */

.rj-journal {
  /* Page colours, in one place */
  --rj-paper: #f6f6f8;           /* soft grey-white page */
  --rj-margin: #3b3880;          /* margin line */
  --rj-hole: #ebe9f6;            /* binder holes */
}

.rj-entry {
  position: relative;
  box-sizing: border-box;
  margin: 10px 8px 30px 0;
  padding: 40px 45px 30px 95px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: var(--rj-paper);
  /* A second sheet behind this one */
  box-shadow: 7px 7px 0 -2px var(--rj-paper), 7px 7px 0 0 #000;
}

/* Binder holes down the left edge */
.rj-entry::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 18px;
  width: 22px;
  background-image: radial-gradient(circle at 11px 11px, var(--rj-hole) 0, var(--rj-hole) 8px, #000 8px, #000 9.5px, transparent 10px);
  background-size: 22px 70px;
  /* round: spacing stretches a little so the last hole is never cut off */
  background-repeat: no-repeat round;
}

/* Red margin line */
.rj-entry::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70px;
  width: 2px;
  background-color: var(--rj-margin);
  pointer-events: none;
}

/* Header: like the top of a notebook page */
.rj-entry .rj-entry-header {
  border-bottom: 3px double #5b57bc;
}

.rj-entry .rj-entry-title {
  overflow-wrap: anywhere;
}

/* Section titles: marked with a highlighter */
.rj-entry .rj-section-title {
  display: inline;
  font-size: 22px;
  padding: 0 4px;
  background-image: linear-gradient(transparent 55%, rgba(91, 87, 188, .18) 55%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rj-entry .rj-section-title + * {
  margin-top: 18px;
}

/* Reflection Context: index-card labels */
.rj-entry .rj-context > div {
  border: 1px dashed #b9b5e3;
  background-color: #fff;
}

/* Questions: the printed prompt on the page */
/* Panchu edits-2026-10-14: smaller than the 22px section titles, so the
   order reads section > question > answer (the theme's h4 is large and
   widely spaced). */
.rj-entry .rj-question {
  margin: 0 0 8px;
  color: #0c0c0c;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.5px;
}

/* Answers */
.rj-entry .rj-answer {
  margin-bottom: 28px;
}

/* Panchu edits-2026-10-14: each answer is a note card written into the
   journal - white card, #5b57bc accent bar on the left, larger darker text
   (answers are the main content). Replaces the ruled lines. */
.rj-entry .rj-answer-text {
  padding: 14px 18px;
  border-left: 4px solid #5b57bc;
  border-radius: 0 5px 5px 0;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(59, 56, 128, .08);
  font-size: 14px;
  line-height: 1.7;
  color: #1f1f3a;
  overflow-wrap: anywhere;
}

.rj-entry .rj-answer-text p {
  margin: 0;
}

.rj-entry .rj-answer-text p + p {
  margin-top: .8em;
}

/* Self-assessment table on the page */
.rj-entry .rj-sa-table {
  background-color: #fff;
}

/* The space goes on the wrapper: UIkit removes the bottom margin of the last
   child of .uk-overflow-auto, so a margin on the table itself is lost. */
.rj-entry .uk-overflow-auto {
  margin-bottom: 30px;
}

.rj-entry .rj-sa-table th {
  background-color: #f2f0fb;
  color: #3b3880;
  font-weight: 700;
}

@media (max-width: 639px) {
  .rj-entry {
    margin-right: 5px;
    padding: 25px 18px 20px 52px;
    box-shadow: 5px 5px 0 -2px var(--rj-paper), 5px 5px 0 0 #000;
  }

  .rj-entry::before {
    left: 8px;
    width: 18px;
    background-image: radial-gradient(circle at 9px 9px, var(--rj-hole) 0, var(--rj-hole) 6px, #000 6px, #000 7.5px, transparent 8px);
    background-size: 18px 56px;
  }

  .rj-entry::after {
    left: 38px;
  }
}

/* Printing an entry: plain page, no holes or shadows */
@media print {
  .rj-entry {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .rj-entry::before,
  .rj-entry::after {
    display: none;
  }
}


/* ---------- Form ---------- */

.rj-form-title {
  margin: 0 0 25px;
}

/* Steps (ACF tabs) */
.rj-form .acf-tab-wrap {
  margin-bottom: 25px;
}

.rj-form .acf-tab-wrap.-top .acf-tab-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid #000;
}

.rj-form .acf-tab-wrap.-top .acf-tab-group li {
  flex: 0 0 auto;
  margin: 0 !important;
}

.rj-form .acf-tab-wrap.-top .acf-tab-group li a {
  display: block;
  padding: 8px 14px;
  border: 2px solid #000;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background-color: #f2f2f2;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: all .35s ease-in-out;
}

.rj-form .acf-tab-wrap.-top .acf-tab-group li a:hover,
.rj-form .acf-tab-wrap.-top .acf-tab-group li.active a {
  background-color: #5b57bc;
  border-color: #5b57bc;
  color: #fff;
}

/* Section intro */
.rj-form .rj-section-intro h3 {
  margin: 0 0 5px;
  color: #5b57bc;
}

.rj-form .rj-section-intro p {
  margin: 0;
  color: #666;
}

/* Fields */
.rj-form .acf-fields > .acf-field {
  padding: 12px 0;
  border-top: 0;
}

.rj-form .acf-fields > .acf-field[data-width] + .acf-field[data-width] {
  padding-left: 20px;
  border-left: 0;
}

.rj-form .acf-label label {
  font-weight: 600;
  color: #000;
}

.rj-form .acf-label .description {
  font-style: italic;
  color: #666;
}

.rj-form .rj-required-publish .acf-label label::after {
  content: " *";
  color: #5b57bc;
}

.rj-form input[type="text"],
.rj-form textarea,
.rj-form .acf-fields select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #f2f2f2;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  font: inherit;
  transition: all .35s ease-in-out;
}

.rj-form input[type="text"],
.rj-form .acf-fields select {
  height: 44px;
}

.rj-form input[type="text"]:hover,
.rj-form input[type="text"]:focus,
.rj-form textarea:hover,
.rj-form textarea:focus,
.rj-form .acf-fields select:hover,
.rj-form .acf-fields select:focus {
  border-color: #5b57bc;
  background-color: #fff;
  box-shadow: none;
  outline: 0;
}

.rj-form .acf-radio-list li {
  margin-right: 20px;
}

/* Self-assessment */
.rj-form .rj-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px;
  border-radius: 5px;
  background-color: #f2f2f2;
  font-size: 14px;
}

.rj-form .rj-scale b {
  color: #5b57bc;
}

.rj-form .acf-fields > .acf-field.rj-sa-heading {
  padding: 20px 0 0;
}

.rj-form .rj-sa-heading .acf-label label {
  font-size: 16px;
  color: #5b57bc;
}

.rj-form .rj-sa-heading .acf-input {
  display: none;
}

.rj-form .rj-sa-rating .acf-label label {
  font-weight: 400;
  color: #666;
}

.rj-form .acf-button-group label {
  min-width: 44px;
  padding: 8px 12px;
  border-color: #000;
  text-align: center;
}

.rj-form .acf-button-group label.selected {
  background-color: #5b57bc;
  border-color: #5b57bc;
  color: #fff;
}

/* Anonymous option */
.rj-form-options {
  margin: 30px 0 10px;
  padding: 15px 20px;
  border-radius: 5px;
  background-color: #f2f2f2;
}

.rj-form-options label {
  font-weight: 600;
  cursor: pointer;
}

.rj-form-options .uk-checkbox {
  margin-right: 8px;
}

/* Panchu edits-2026-10-07: consent + privacy reminder */
.rj-form-options .rj-consent {
  display: block;
  margin-top: 15px;
}

.rj-consent-error {
  margin: 8px 0 0;
  color: #f0506e;
  font-weight: 600;
}

.rj-privacy-note {
  margin: 0 0 25px;
  padding: 12px 16px;
  border-left: 4px solid #5b57bc;
  border-radius: 5px;
  background-color: #f2f2f2;
  font-size: 14px;
}

.rj-privacy-note p {
  margin: 0;
}

.rj-privacy-note a {
  color: #5b57bc;
  font-weight: 600;
  transition: all .35s ease-in-out; /* Panchu edits-2026-10-16 */
}

.rj-safeguarding-entry {
  max-width: 900px;
  margin: 20px 0;
  padding: 25px;
  background-color: #fff;
  border: 1px solid #c3c4c7;
}

/* Back / Next + Private / Publish */
.rj-form .acf-form-submit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #000;
}

.rj-form-nav,
.rj-form-submit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rj-form .acf-form-submit .rj-help {
  width: 100%;
}

.rj-form.rj-submitting .rj-submit {
  opacity: .5;
  pointer-events: none;
}


/* ---------- Mobile ---------- */

@media (max-width: 639px) {
  .rj-form .acf-fields > .acf-field[data-width] {
    width: 100% !important;
    float: none;
  }

  .rj-form .acf-fields > .acf-field[data-width] + .acf-field[data-width] {
    padding-left: 0;
  }

  .rj-form .acf-form-submit,
  .rj-form-submit {
    flex-direction: column;
    align-items: stretch;
  }

  .rj-form-submit .rj-button {
    width: 100%;
  }
}


/* ---------- Moderation dashboard [rj_dashboard] ----------
   Panchu edits-2026-10-16: table of entries sent for publication, with the
   same look as the rest of the journal (2px black borders, radius 5,
   #5b57bc on hover). */

.rj-dash-intro {
  margin: 0 0 20px;
  color: #666;
}

/* Panchu edits-2026-10-16: search + status filter (replaced the tab buttons).
   Inputs look like the journal form's: grey, 2px black border, white +
   purple border on focus. */
.rj-dash-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
}

.rj-dash-filter .uk-input,
.rj-dash-filter .uk-select {
  height: 44px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #f2f2f2;
  color: #000;
  transition: all .35s ease-in-out;
}

.rj-dash-filter .uk-input {
  flex: 1 1 260px;
  width: auto;
}

.rj-dash-filter .uk-select {
  flex: 0 1 230px;
  width: auto;
}

/* Panchu edits-2026-10-16: YOOtheme's ".uk-select:not([multiple]):not([size])"
   sets a 1px grey bottom border and is stronger than the rule above, so the
   dropdown's border looked uneven. Same selector strength + ours wins. The
   arrow also moves in from the edge. */
.rj-dash-filter .uk-select:not([multiple]):not([size]) {
  border: 2px solid #000;
  padding-right: 34px;
  background-color: #f2f2f2;
  background-position: calc(100% - 10px) 50%;
}

.rj-dash-filter .uk-select:not([multiple]):not([size]):hover,
.rj-dash-filter .uk-select:not([multiple]):not([size]):focus {
  border-color: #5b57bc;
  background-color: #fff;
}

.rj-dash-filter .uk-input:hover,
.rj-dash-filter .uk-input:focus,
.rj-dash-filter .uk-select:hover,
.rj-dash-filter .uk-select:focus {
  border-color: #5b57bc;
  background-color: #fff;
  outline: 0;
}

.rj-dash-filter .rj-button {
  height: 44px;
}

.rj-dash-clear {
  color: #5b57bc;
  font-weight: 600;
  transition: all .35s ease-in-out;
}

.rj-dash-results {
  margin: -10px 0 15px;
  color: #666;
  font-size: 14px;
}

/* Table */
.rj-dash-table-wrap {
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
}

.rj-dash-table {
  margin: 0;
}

.rj-dash-table th {
  background-color: #f2f0fb;
  color: #3b3880;
  font-weight: 700;
  white-space: nowrap;
}

.rj-dash-table th,
.rj-dash-table td {
  padding: 14px 16px;
}

.rj-dash-entry {
  min-width: 220px;
}

.rj-dash-title {
  color: #000;
  font-weight: 700;
  transition: all .35s ease-in-out;
}

.rj-dash-title:hover,
.rj-dash-title:focus {
  color: #5b57bc;
  text-decoration: none;
}

.rj-dash-entry .rj-meta {
  margin-top: 3px;
}

/* "Anonymous": the name is hidden on the platform */
.rj-dash-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px dashed #5b57bc;
  border-radius: 20px;
  color: #5b57bc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Publish / Unpublish / Not approved */
.rj-dash-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rj-dash-form {
  margin: 0;
}

.rj-dash-buttons .rj-button {
  white-space: nowrap;
}

/* Panchu edits-2026-10-16: no red hover on Not approved any more - every
   dashboard button uses the journal's purple hover (.rj-button above).
   Panchu edits-2026-11-20: Not approved (and Send in its pop-up) is light
   orange instead - same button style, orange border and hover. */
.rj-button.rj-dash-to-draft {
  border-color: var(--rj-neg-border) !important;
  color: var(--rj-neg-text) !important;
}

.rj-button.rj-dash-to-draft:hover,
.rj-button.rj-dash-to-draft:focus {
  background-color: var(--rj-neg-bg) !important;
  border-color: var(--rj-neg-text) !important;
  color: var(--rj-neg-text) !important;
}

/* Faded while the page reloads after a click */
.rj-dash-busy {
  opacity: .5;
  pointer-events: none;
}

/* One entry: status + buttons, details, checking note, then the notebook page */
.rj-dash-review {
  margin: 0 0 35px;
  padding: 20px 22px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
}

.rj-dash-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.rj-dash-details {
  margin: 20px 0;
}

.rj-dash-review .rj-privacy-note {
  margin: 0;
}

.rj-dashboard .rj-back {
  margin: 0 0 20px;
}

.rj-dashboard .rj-entry + .rj-back {
  margin-top: 40px;
}

/* Small screens: each row becomes a card, labels from data-label */
@media (max-width: 959px) {
  .rj-dash-table-wrap {
    overflow: visible;
    border: 0;
    background: none;
  }

  .rj-dash-table thead {
    display: none;
  }

  .rj-dash-table,
  .rj-dash-table tbody,
  .rj-dash-table tr,
  .rj-dash-table td {
    display: block;
  }

  .rj-dash-table tr {
    margin-bottom: 12px;
    padding: 8px 0;
    border: 2px solid #000 !important;
    border-radius: 5px;
    background-color: #fff;
  }

  .rj-dash-table td {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    border: 0 !important;
  }

  .rj-dash-table td::before {
    content: attr(data-label);
    flex: 0 0 90px;
    color: #666;
    font-size: 13px;
  }

  .rj-dash-table td.rj-dash-entry {
    display: block;
    min-width: 0;
  }

  .rj-dash-table td.rj-dash-entry::before {
    display: block;
    margin-bottom: 2px;
  }
}

/* Panchu edits-2026-10-16: Attempt column - 1st plain, 2nd and later highlighted */
.rj-dash-attempt {
  display: inline-block;
  min-width: 40px;
  padding: 2px 10px;
  box-sizing: border-box;
  border: 2px solid #000;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.rj-dash-attempt--repeat {
  border-color: #5b57bc;
  background-color: #5b57bc;
  color: #fff;
}

/* Review history on the Review page */
.rj-dash-history-title {
  margin: 25px 0 10px;
  color: #5b57bc;
  font-size: 18px;
  font-weight: 700;
}

.rj-dash-history {
  margin: 0;
  font-size: 14px;
}

.rj-dash-history th {
  color: #3b3880;
  font-weight: 700;
}

.rj-dash-history td:nth-child(-n+3) {
  white-space: nowrap;
}

.rj-dash-history td:last-child {
  width: 100%;
  overflow-wrap: anywhere;
}

/* "Not approved" pop-up. UIkit moves modals to the end of <body>, outside
   .rj-journal, so these rules are not scoped to it. */
.rj-dash-modal .uk-modal-dialog {
  border: 2px solid #000;
  border-radius: 5px;
}

.rj-dash-modal-title {
  margin: 0 0 5px;
  color: #5b57bc;
  font-weight: 700;
}

.rj-dash-modal-entry {
  margin: 0 0 20px;
  font-weight: 600;
}

.rj-dash-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000;
}

.rj-dash-modal textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #f2f2f2;
  font: inherit;
  resize: vertical;
  transition: all .35s ease-in-out;
}

.rj-dash-modal textarea:hover,
.rj-dash-modal textarea:focus {
  border-color: #5b57bc;
  background-color: #fff;
  outline: 0;
}

.rj-dash-modal .rj-help {
  margin: 10px 0 0;
  font-size: 14px;
  color: #666;
}

.rj-dash-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.rj-dash-reject-form.rj-dash-busy .rj-button {
  opacity: .5;
  pointer-events: none;
}

/* What the author sees on a Not approved entry (My Journal, edit form, entry).
   Panchu edits-2026-10-16: same look as the "Before you write" note
   (.rj-privacy-note): grey, purple bar on the left, radius 5, 14px.
   Panchu edits-2026-11-20: light orange fill and bar (was grey / purple). */
.rj-not-approved {
  margin: 0 0 25px;
  padding: 12px 16px;
  border-left: 4px solid var(--rj-neg-border);
  border-radius: 5px;
  background-color: var(--rj-neg-bg);
  color: #000;
  font-size: 14px;
}

.rj-not-approved p {
  margin: 0;
}

.rj-not-approved-title {
  color: var(--rj-neg-text);
  font-weight: 700;
}

.rj-not-approved-reason {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 5px;
  background-color: #fff;
  color: #000;
}

/* Panchu edits-2026-10-16: notices ("Thank you for sharing...", "... is now
   published", saved / deleted, no access) - on My Journal and the dashboard -
   get the same 2px black border and radius 5 as the entry boxes below them.
   Text colour and background stay the theme's. */
.rj-journal .rj-notice {
  border: 2px solid #000;
  border-radius: 5px;
}

.rj-journal .rj-notice p {
  margin: 0;
}

.rj-not-approved-reason p + p {
  margin-top: .6em;
}

/* In My Journal it takes the full width under the entry's row */
.rj-my-item .rj-not-approved {
  flex: 1 1 100%;
  margin: 0;
}


/* ---------- Unfinished entries / autosave (Panchu edits-2026-11-20) ---------- */

/* "You have an unfinished entry" above the Add form - same look as the
   "Before you write" note */
.rj-unfinished-note {
  margin: 0 0 25px;
  padding: 12px 16px;
  border-left: 4px solid #5b57bc;
  border-radius: 5px;
  background-color: #f2f2f2;
  font-size: 14px;
}

.rj-unfinished-note p {
  margin: 0;
}

.rj-unfinished-note ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.rj-unfinished-note a {
  color: #5b57bc;
  font-weight: 600;
}

/* "Saved automatically at 14:05" under the buttons */
.rj-form .acf-form-submit .rj-autosave-status {
  width: 100%;
  margin: 0;
  font-size: 13px;
  color: #666;
}


/* =========================================================
   UX round 1.4.0 (Panchu edits-2026-11-20)
   ========================================================= */

/* A button that looks like a link (lists in the pop-up, "Show all entries") */
.rj-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #5b57bc;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all .35s ease-in-out;
}

.rj-link-button:hover,
.rj-link-button:focus {
  color: #3b3880;
  text-decoration: underline;
}

/* ---------- Filter bars: Shared entries + My Journal ----------
   Same look as the dashboard's search bar (.rj-dash-filter). */
.rj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
}

.rj-filter-bar .uk-input,
.rj-filter-bar .uk-select {
  height: 44px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #f2f2f2;
  color: #000;
  transition: all .35s ease-in-out;
}

.rj-filter-bar .uk-input {
  flex: 1 1 240px;
  width: auto;
}

.rj-filter-bar .uk-select {
  flex: 0 1 220px;
  width: auto;
}

/* YOOtheme's .uk-select:not([multiple]):not([size]) is stronger - same fix as the dashboard */
.rj-filter-bar .uk-select:not([multiple]):not([size]) {
  border: 2px solid #000;
  padding-right: 34px;
  background-color: #f2f2f2;
  background-position: calc(100% - 10px) 50%;
}

.rj-filter-bar .uk-input:hover,
.rj-filter-bar .uk-input:focus,
.rj-filter-bar .uk-select:hover,
.rj-filter-bar .uk-select:focus,
.rj-filter-bar .uk-select:not([multiple]):not([size]):hover,
.rj-filter-bar .uk-select:not([multiple]):not([size]):focus {
  border-color: #5b57bc;
  background-color: #fff;
  outline: 0;
}

.rj-filter-bar .rj-button {
  height: 44px;
}

.rj-filter-clear {
  color: #5b57bc;
  font-weight: 600;
  transition: all .35s ease-in-out;
}

.rj-filter-results {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.rj-filter-results:empty {
  display: none;
}

.rj-shared-filter {
  margin-bottom: 25px;
}

/* Status chips in My Journal */
.rj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 15px;
}

.rj-chip {
  padding: 5px 14px;
  border: 2px solid #000;
  border-radius: 20px;
  background-color: #fff;
  color: #000;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .35s ease-in-out;
}

.rj-chip span {
  margin-left: 4px;
  font-weight: 400;
}

.rj-chip:hover,
.rj-chip:focus-visible {
  border-color: #5b57bc;
  color: #5b57bc;
}

.rj-chip.is-active {
  border-color: #5b57bc;
  background-color: #5b57bc;
  color: #fff;
}

/* Not approved chip: light orange, like its status badge */
.rj-chip--draft {
  border-color: var(--rj-neg-border);
  color: var(--rj-neg-text);
}

.rj-chip--draft.is-active {
  border-color: var(--rj-neg-text);
  background-color: var(--rj-neg-bg);
  color: var(--rj-neg-text);
}

.rj-chip--unfinished {
  border-style: dashed;
}

.rj-my-nomatch {
  margin-top: 15px;
}

/* ---------- Needs your attention ---------- */
.rj-attention {
  margin: 0 0 30px;
  padding: 18px 22px;
  border: 2px solid #000;
  border-left: 6px solid var(--rj-neg-border);
  border-radius: 5px;
  background-color: #fff;
}

.rj-attention-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.rj-attention-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rj-attention-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 10px;
  border-top: 1px solid #e5e4f2;
}

.rj-attention-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.rj-attention-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  flex: 1 1 300px;
}

.rj-attention-main .rj-meta {
  flex: 1 1 100%;
}

/* ---------- Form: step ticks + "Step 3 of 7" ---------- */
.rj-form .acf-tab-wrap.-top .acf-tab-group li.rj-tab-done a::after {
  content: "\2713";
  margin-left: 6px;
  font-weight: 700;
}

.rj-form-nav {
  align-items: center;
}

.rj-step-count {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- "Before you publish" pop-up ---------- */
.rj-modal .uk-modal-dialog {
  border: 2px solid #000;
  border-radius: 5px;
}

.rj-modal-title {
  margin: 0 0 5px;
  color: #5b57bc;
  font-weight: 700;
}

.rj-check-steps {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.rj-check-steps li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  background-color: #f2f2f2;
  font-size: 14px;
}

.rj-check-steps li::before {
  content: "\2013";
  flex: 0 0 18px;
  color: #999;
  font-weight: 700;
}

.rj-check-steps li.is-done::before {
  content: "\2713";
  color: #5b57bc;
}

.rj-check-steps .rj-link-button {
  flex: 1 1 auto;
}

.rj-check-missing {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--rj-neg-border);
  border-radius: 5px;
  background-color: var(--rj-neg-bg);
  font-size: 14px;
}

.rj-check-missing p {
  margin: 0 0 6px;
  color: var(--rj-neg-text);
}

.rj-check-missing ul {
  margin: 0;
  padding-left: 18px;
}

.rj-modal .rj-form-options {
  margin: 0;
}

.rj-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* No UIkit: shown in the page instead of as a pop-up */
.rj-modal.rj-modal--inline {
  display: block !important;
  position: static;
  opacity: 1;
  background: none;
  padding: 0;
}

/* ---------- My Progress ---------- */
/* Panchu edits-2026-11-20: "What you see on this page" - a card in the same
   style as the skill cards below (white, 2px black border, radius 5, purple
   heading), with the 1-5 scale and the circles key at its foot. */
.rj-progress-intro {
  margin: 0 0 20px;
  padding: 20px 22px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
  color: #1f1f3a;
  font-size: 14px;
  line-height: 1.6;
}

.rj-progress-intro p {
  margin: 0 0 8px;
}

.rj-progress-intro ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.rj-progress-intro li {
  margin-bottom: 4px;
}

.rj-progress-intro li::marker {
  color: #5b57bc;
}

.rj-progress-intro .rj-meta {
  margin: 0;
}

.rj-progress-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e5e4f2;
  font-size: 13px;
}

.rj-progress-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.rj-progress-scale b {
  color: #5b57bc;
}

.rj-progress-key {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rj-progress-key .rj-dot {
  position: static;
  transform: none;
}

.rj-progress-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 15px;
}

.rj-progress-card {
  padding: 20px 22px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
  transition: all .35s ease-in-out;
}

.rj-progress-card:hover {
  box-shadow: 0 10px 25px rgba(91, 87, 188, .18);
}

.rj-progress-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 18px;
}

/* Panchu edits-2026-11-20: the skill's name is a heading above its card.
   Two-line names push the text down, not the card, so all cards in a row
   start at the same height. */
.rj-progress-item {
  display: flex;
  flex-direction: column;
}

.rj-progress-title {
  display: flex;
  align-items: flex-end;
  min-height: 2.6em;
  margin: 0 0 8px;
  color: #000;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.rj-progress-item .rj-progress-card {
  flex: 1;
}

/* The change since the first rating: a pill, like the status badges */
.rj-change {
  display: inline-block;
  padding: 2px 10px;
  border: 2px solid #000;
  border-radius: 20px;
  background-color: #f2f2f2;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.rj-change--up {
  border-color: #5b57bc;
  background-color: #5b57bc;
  color: #fff;
}

.rj-change--down {
  border-color: var(--rj-neg-border);
  background-color: var(--rj-neg-bg);
  color: var(--rj-neg-text);
}

/* The 1-5 track: positions 0 / 25 / 50 / 75 / 100 % */
.rj-track {
  position: relative;
  height: 20px;
  margin: 0 10px;
}

.rj-track-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background-color: #e5e4f2;
}

.rj-track-range {
  position: absolute;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background-color: #5b57bc;
}

.rj-track-range--down {
  background-color: var(--rj-neg-border);
}

.rj-dot {
  display: inline-block;
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 3px solid #5b57bc;
  border-radius: 50%;
  background-color: #fff;
  transform: translate(-50%, -50%);
}

.rj-dot--now {
  background-color: #5b57bc;
}

/* Each number sits exactly under its point on the track (same 10px side margin) */
.rj-track-labels {
  position: relative;
  height: 16px;
  margin: 6px 10px 0;
  color: #666;
  font-size: 12px;
  font-weight: 700;
}

.rj-track-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.rj-track-labels span:nth-child(1) { left: 0; }
.rj-track-labels span:nth-child(2) { left: 25%; }
.rj-track-labels span:nth-child(3) { left: 50%; }
.rj-track-labels span:nth-child(4) { left: 75%; }
.rj-track-labels span:nth-child(5) { left: 100%; }

.rj-progress-summary {
  margin: 12px 0 8px;
  color: #1f1f3a;
  font-size: 14px;
}

.rj-progress-history summary {
  color: #5b57bc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.rj-progress-history ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.rj-progress-history li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 5px 0;
  border-top: 1px solid #e5e4f2;
}

.rj-progress-history a {
  flex: 1 1 auto;
  color: #000;
  font-weight: 600;
}

.rj-history-values {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Download my journal (standalone page, ?rj=print) ---------- */
body.rj-print-page {
  margin: 0;
  background-color: #f6f6f8;
  color: #1f1f3a;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.rj-print-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-bottom: 2px solid #000;
  background-color: #fff;
}

.rj-print-back {
  color: #5b57bc;
  font-weight: 600;
  text-decoration: none;
}

.rj-print-button {
  padding: 10px 22px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all .35s ease-in-out;
}

.rj-print-button:hover,
.rj-print-button:focus {
  border-color: #5b57bc;
  background-color: #5b57bc;
  color: #fff;
}

.rj-print-doc {
  max-width: 900px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.rj-print-cover {
  margin: 0 0 30px;
}

.rj-print-kicker {
  margin: 0;
  color: #5b57bc;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 13px;
}

.rj-print-cover h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  line-height: 1.2;
}

.rj-print-cover p {
  margin: 0;
}

.rj-print-private {
  margin-top: 8px !important;
  color: #666;
  font-size: 13px;
}

.rj-print-doc .rj-entry {
  margin-bottom: 40px;
}

.rj-print-doc h2,
.rj-print-doc h3,
.rj-print-doc h4 {
  line-height: 1.3;
}

.rj-print-doc .rj-entry-title {
  font-size: 24px;
}

.rj-print-doc table {
  width: 100%;
  border-collapse: collapse;
}

.rj-print-doc th,
.rj-print-doc td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e4f2;
  text-align: left;
}

@media print {
  body.rj-print-page {
    background: #fff;
  }

  .rj-print-bar {
    display: none;
  }

  .rj-print-doc {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* each entry on its own page */
  .rj-print-doc .rj-entry + .rj-entry {
    break-before: page;
  }

  .rj-print-doc .rj-answer {
    break-inside: avoid;
  }
}

@media (max-width: 639px) {
  .rj-filter-bar .uk-input,
  .rj-filter-bar .uk-select,
  .rj-filter-bar .rj-button {
    flex: 1 1 100%;
  }

  .rj-progress-list {
    grid-template-columns: 1fr;
  }
}

/* Panchu edits-2026-11-20: hide the round accessibility button while a pop-up
   is open (UIkit marks the page with .uk-modal-page) - on phones it sat on
   top of the pop-up's text. */
.uk-modal-page .djacc {
  visibility: hidden;
}

/* ---------- Module dropdown in the form (Panchu edits-2026-11-20) ----------
   ACF's enhanced dropdown (select2): the closed box looks like the other
   fields (grey, 2px black border, radius 5), the arrow is a chevron set in
   from the edge, and the open list matches the journal (purple highlight,
   course names as small purple headings). Its list opens inside the field
   (reflective-journal.js), so these rules can be scoped to .rj-form. */
.rj-form .select2-container {
  width: 100% !important;
}

.rj-form .select2-container--default .select2-selection--single {
  height: 44px;
  border: 2px solid #000;
  border-radius: 5px;
  background-color: #f2f2f2;
  box-shadow: 0 5px 15px rgba(0,0,0,.08);
  transition: all .35s ease-in-out;
}

.rj-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 70px 0 12px;
  color: #000;
  line-height: 40px;
}

.rj-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #666;
}

.rj-form .select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right: 34px;
  color: #666;
  font-size: 18px;
  font-weight: 400;
}

.rj-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 6px;
  width: 30px;
  height: 40px;
}

.rj-form .select2-container--default .select2-selection--single .select2-selection__arrow b {
  top: 50%;
  left: 50%;
  width: 12px;
  height: 8px;
  margin: -4px 0 0 -6px;
  border: 0;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .35s ease-in-out;
}

.rj-form .select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg);
}

.rj-form .select2-container--default .select2-selection--single:hover,
.rj-form .select2-container--default.select2-container--focus .select2-selection--single,
.rj-form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #5b57bc;
  background-color: #fff;
  box-shadow: none;
  outline: 0;
}

/* The open list */
.rj-form .select2-dropdown {
  border: 2px solid #5b57bc !important;
  border-radius: 5px !important;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(91, 87, 188, .18);
  overflow: hidden;
}

.rj-form .select2-dropdown--below {
  margin-top: 4px;
}

.rj-form .select2-dropdown--above {
  margin-top: -4px;
}

.rj-form .select2-results > .select2-results__options {
  max-height: 280px;
}

.rj-form .select2-results__option {
  margin: 0;
  padding: 10px 14px;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
}

/* Course names (groups) */
.rj-form .select2-results__group {
  padding: 12px 14px 4px !important;
  color: #5b57bc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.rj-form .select2-results__options--nested .select2-results__option {
  padding-left: 26px;
}

.rj-form .select2-container--default .select2-results__option[aria-selected="true"],
.rj-form .select2-container--default .select2-results__option--selected {
  background-color: #f2f0fb;
  color: #3b3880;
  font-weight: 600;
}

.rj-form .select2-container--default .select2-results__option--highlighted[aria-selected],
.rj-form .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #5b57bc;
  color: #fff;
}

.rj-form .select2-search--dropdown .select2-search__field {
  height: 38px;
  padding: 0 10px;
  border: 2px solid #000;
  border-radius: 5px;
}

/* Without JavaScript (a plain dropdown): the same chevron, set in from the edge */
.rj-form .acf-fields select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* ---------- Dashboard: column headings (Panchu edits-2026-11-20) ----------
   The theme's table headings (light grey, thin, 13px) were stronger than the
   rules above and made the labels hard to read. Now white on the journal
   purple, bold - same for the review history. */
.rj-dashboard .rj-dash-table > thead > tr > th,
.rj-dashboard .rj-dash-history > thead > tr > th {
  background-color: #5b57bc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Small screens: the labels in front of each value */
@media (max-width: 959px) {
  .rj-dashboard .rj-dash-table td::before {
    color: #3b3880;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
  }
}

/* The self-assessment table on an entry had the same faint theme heading */
.rj-journal .rj-entry .rj-sa-table > thead > tr > th {
  color: #3b3880;
  font-weight: 700;
}

/* ---------- My Progress: "How to read this page" (Panchu edits-2026-11-20) ----------
   Same box as "Needs your attention" (.rj-attention), with a purple bar. */
.rj-attention--info {
  border-left-color: #5b57bc;
}

.rj-progress-help-lead {
  margin: 0 0 14px;
  color: #1f1f3a;
  font-size: 14px;
}

.rj-help-item {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

/* The visual on the left of each row */
.rj-help-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 90px;
}

.rj-help-dots {
  display: inline-flex;
  gap: 8px;
}

.rj-help-dots .rj-dot,
.rj-progress-key .rj-dot {
  position: static;
  transform: none;
}

.rj-help-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.rj-help-line {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background-color: #5b57bc;
}

.rj-help-line--down {
  background-color: var(--rj-neg-border);
}

.rj-help-link {
  color: #5b57bc;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.rj-help-item .rj-attention-main {
  flex: 1 1 auto;
}

@media (max-width: 639px) {
  .rj-help-visual {
    flex-basis: 70px;
  }
}

/* ---------- Form: radio dots and tick boxes in the journal purple ---------- */
.rj-journal input[type="radio"],
.rj-journal input[type="checkbox"],
.rj-modal input[type="radio"],
.rj-modal input[type="checkbox"] {
  accent-color: #5b57bc;
}

/* UIkit draws its own tick boxes (.uk-checkbox) */
.rj-journal .uk-checkbox:checked,
.rj-journal .uk-checkbox:checked:focus {
  border-color: #5b57bc;
  background-color: #5b57bc;
}

/* ---------- Confirm pop-up (Delete, Publish / Unpublish) ---------- */
.rj-confirm-text {
  margin: 10px 0 0;
  color: #1f1f3a;
}

/* Delete: orange, like the Delete link */
.rj-button.rj-button--danger {
  border-color: var(--rj-neg-border) !important;
  color: var(--rj-neg-text) !important;
}

.rj-button.rj-button--danger:hover,
.rj-button.rj-button--danger:focus {
  border-color: var(--rj-neg-text) !important;
  background-color: var(--rj-neg-bg) !important;
  color: var(--rj-neg-text) !important;
}

/* ---------- Pop-up notification (UIkit notification, status "rj") ---------- */
.uk-notification-message.uk-notification-message-rj {
  padding: 14px 40px 14px 18px;
  border: 2px solid #000;
  border-left: 6px solid #5b57bc;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 10px 25px rgba(91, 87, 188, .18);
  color: #1f1f3a;
  font-size: 15px;
  font-weight: 600;
}