/* =====================================================================
   Wexley Press theme for OJS - journal pages matched to the website.
   The header, sidebar and footer use the website's own wx-styles.css
   (loaded before this file); this file adapts the Default theme's
   journal content to the same fonts, colours and layout.
   Colours: purple #4f2d7f, deep plum #2a1748, light blue #bfd1ff.
   ===================================================================== */

/* ---------- base: website fonts / 16px rem (the Default theme uses 14px) */
html, body.wx-ojs { font-size: 16px; }
body.wx-ojs {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--wx-text);
  background: #fff;
}
.wx-ojs .pkp_structure_main a { color: var(--wx-purple); }
.wx-ojs .pkp_structure_main a:hover, .wx-ojs .pkp_structure_main a:focus { color: var(--wx-deep); }

/* ---------- Default theme scaffold out of the way: Bootstrap grid does the layout */
.wx-ojs .pkp_structure_page { max-width: none; margin: 0; padding: 0; box-shadow: none; background: none; }
.wx-ojs .pkp_structure_main {
  float: none; width: auto; margin: 0; padding: 0; position: static;
}
.wx-ojs .pkp_structure_main::before,
.wx-ojs .pkp_structure_main::after { display: none; }
.wx-ojs .wx-layout { padding-top: 28px; }

/* ---------- journal banner (logo + search) */
.wx-ojs-banner {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  margin-top: 24px; padding: 18px 26px;
  background: linear-gradient(180deg, #fff 0%, #f6f4fb 100%);
  border: 1px solid var(--wx-line); border-left: 6px solid var(--wx-purple);
  border-radius: var(--wx-radius);
}
.wx-ojs-banner__brand { display: inline-flex; align-items: center; }
.wx-ojs-banner__brand img { display: block; width: auto; max-width: 100%; height: auto; max-height: 86px; }
.wx-ojs-banner__title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--wx-deep); line-height: 1.2; }
.wx-ojs-search { display: flex; flex: 0 1 320px; min-width: 220px; }
.wx-ojs-search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--wx-line); border-right: 0; border-radius: 999px 0 0 999px;
  font: inherit; color: var(--wx-ink); background: #fff;
}
.wx-ojs-search input:focus { outline: 2px solid var(--wx-purple-soft); border-color: var(--wx-purple); }
.wx-ojs-search button {
  width: 48px; height: 44px; border: 0; border-radius: 0 999px 999px 0;
  background: var(--wx-purple); color: #fff;
}
.wx-ojs-search button:hover { background: var(--wx-deep); }
@media (max-width: 575.98px) {
  .wx-ojs-banner { padding: 16px; justify-content: center; }
  .wx-ojs-banner__brand img { max-height: 64px; }
  .wx-ojs-search { flex-basis: 100%; }
}

/* ---------- headings and text in the content column */
.wx-ojs .pkp_structure_main h1,
.wx-ojs .pkp_structure_main h2,
.wx-ojs .pkp_structure_main h3,
.wx-ojs .pkp_structure_main h4 { font-family: var(--font-display); color: var(--wx-ink); font-weight: 700; }
.wx-ojs .pkp_structure_main h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 18px; color: var(--wx-deep); }
.wx-ojs .pkp_structure_main h2 { font-size: 1.4rem; line-height: 1.3; }
.wx-ojs .pkp_structure_main h3 { font-size: 1.15rem; line-height: 1.35; }
.wx-ojs .pkp_structure_main p,
.wx-ojs .pkp_structure_main li { line-height: 1.7; }

/* page titles get the website's eyebrow-style underline */
.wx-ojs .page > h1:first-of-type,
.wx-ojs .page > h2:first-of-type { padding-bottom: 12px; border-bottom: 3px solid var(--wx-purple-soft); }

/* breadcrumbs */
.wx-ojs .cmp_breadcrumbs ol { padding: 0; margin: 0 0 18px; font-size: 0.9rem; line-height: 1.5; }
.wx-ojs .cmp_breadcrumbs .separator { color: var(--wx-text); opacity: 0.6; }
.wx-ojs .cmp_breadcrumbs .current { color: var(--wx-text); }

/* ---------- buttons */
.wx-ojs .cmp_button,
.wx-ojs .cmp_form .buttons button,
.wx-ojs .pkp_button,
.wx-ojs button.submit,
.wx-ojs .pkp_structure_main a.obj_galley_link,
.wx-ojs .pkp_structure_main a.cmp_button,
.wx-ojs .pkp_structure_main a.cmp_button_wire,
.wx-ojs .cmp_button_wire {
  font-family: var(--font-body); font-weight: 600;
  border-radius: 999px; border: 2px solid var(--wx-purple);
  background: var(--wx-purple); color: #fff; box-shadow: none;
  padding: 0.45rem 1.15rem; line-height: 1.4; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.wx-ojs .cmp_button:hover,
.wx-ojs .cmp_form .buttons button:hover,
.wx-ojs .pkp_button:hover,
.wx-ojs button.submit:hover,
.wx-ojs .pkp_structure_main a.obj_galley_link:hover,
.wx-ojs .pkp_structure_main a.cmp_button:hover,
.wx-ojs .pkp_structure_main a.cmp_button_wire:hover,
.wx-ojs .cmp_button_wire:hover { background: var(--wx-deep); border-color: var(--wx-deep); color: #fff; }
.wx-ojs .obj_galley_link::before { color: inherit; margin-right: 6px; }
.wx-ojs .cmp_form .buttons a,
.wx-ojs .cmp_form .buttons .register,
.wx-ojs .cmp_form .buttons .login { color: var(--wx-purple); font-weight: 600; }

/* ---------- forms */
.wx-ojs .cmp_form input[type="text"],
.wx-ojs .cmp_form input[type="email"],
.wx-ojs .cmp_form input[type="password"],
.wx-ojs .cmp_form input[type="url"],
.wx-ojs .cmp_form input[type="tel"],
.wx-ojs .cmp_form select,
.wx-ojs .cmp_form textarea,
.wx-ojs .pkp_search input[type="text"] {
  border: 1px solid var(--wx-line); border-radius: var(--wx-radius-sm); padding: 0.55rem 0.8rem;
  font: inherit; color: var(--wx-ink); background: #fff; max-width: 100%;
}
.wx-ojs .cmp_form input:focus,
.wx-ojs .cmp_form select:focus,
.wx-ojs .cmp_form textarea:focus { outline: 2px solid var(--wx-purple-soft); border-color: var(--wx-purple); }
.wx-ojs .cmp_form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.wx-ojs .cmp_form legend { font-family: var(--font-display); font-weight: 700; color: var(--wx-ink); font-size: 1.15rem; }
.wx-ojs .cmp_form label .label { font-weight: 600; color: var(--wx-ink); }
.wx-ojs .cmp_notification { border-left: 4px solid var(--wx-purple); background: var(--wx-purple-soft); color: var(--wx-ink); border-radius: var(--wx-radius-sm); padding: 14px 18px; }

/* ---------- homepage: about, current issue, announcements */
.wx-ojs.pkp_page_index .homepage_image,
.wx-ojs.pkp_page_index .additional_content { margin: 0 0 24px; padding: 0; }
.wx-ojs.pkp_page_index .homepage_about { padding: 0 0 8px; }
.wx-ojs.pkp_page_index .homepage_image img { display: block; width: 100%; height: auto; border-radius: var(--wx-radius); }
.wx-ojs .page_index_journal .additional_content,
.wx-ojs .page_index_journal .homepage_about { margin-top: 0; }
.wx-ojs .page_index_journal .current_issue > h2,
.wx-ojs .page_index_journal .cmp_announcements > h2,
.wx-ojs .obj_issue_toc .galleys > h2,
.wx-ojs .obj_issue_toc .section > h2 {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wx-purple);
  margin: 30px 0 14px; padding: 0; border: 0;
}
.wx-ojs .pkp_structure_main a.read_more { color: var(--wx-purple); font-weight: 600; }

/* issue header (cover + details) */
.wx-ojs .obj_issue_toc .heading {
  display: grid; grid-template-columns: 140px 1fr; gap: 6px 22px; align-items: start;
  background: var(--wx-light); border-radius: var(--wx-radius); padding: 22px; margin-bottom: 10px;
}
.wx-ojs .obj_issue_toc .heading::after { display: none; }
.wx-ojs .obj_issue_toc .heading > * { grid-column: 2; margin: 0; }
.wx-ojs .obj_issue_toc .heading > .cover { grid-column: 1; grid-row: 1 / span 4; float: none; width: 140px; margin: 0; }
.wx-ojs .obj_issue_toc .cover img { width: 100%; height: auto; max-height: none; margin: 0; border-radius: 6px; box-shadow: 0 8px 20px rgba(42,23,72,0.18); }
.wx-ojs .obj_issue_toc .pub_id, .wx-ojs .obj_issue_toc .published { font-size: 0.93rem; }
.wx-ojs .obj_issue_toc .published .label, .wx-ojs .obj_issue_toc .pub_id .type { font-weight: 700; color: var(--wx-ink); }
@media (max-width: 575.98px) {
  .wx-ojs .obj_issue_toc .heading { grid-template-columns: 1fr; }
  .wx-ojs .obj_issue_toc .heading > *, .wx-ojs .obj_issue_toc .heading > .cover { grid-column: 1; grid-row: auto; }
}
/* sections (Articles, ...) and full-issue galleys: no Default-theme rule line / negative margins */
.wx-ojs .obj_issue_toc .galleys,
.wx-ojs .obj_issue_toc .section { margin: 28px 0 0; padding: 0; }
.wx-ojs .obj_issue_toc .galleys::before,
.wx-ojs .obj_issue_toc .section::before { display: none; }
.wx-ojs .obj_issue_toc .galleys > h2,
.wx-ojs .obj_issue_toc .section > h2,
.wx-ojs .obj_issue_toc .section > h3 { position: static; display: block; left: auto; padding: 0; background: none; line-height: 1.3; }

/* article cards (issue table of contents, search results, archives) */
.wx-ojs .cmp_article_list { padding: 0; margin: 0; }
.wx-ojs .cmp_article_list > li { margin-bottom: 16px; list-style: none; }
.wx-ojs .obj_article_summary {
  position: relative;
  border: 1px solid var(--wx-line); border-radius: var(--wx-radius); background: #fff;
  padding: 20px 22px; transition: box-shadow .2s ease, transform .2s ease;
}
.wx-ojs .obj_article_summary:hover { box-shadow: var(--wx-shadow); transform: translateY(-2px); }
.wx-ojs .obj_article_summary .title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.35; margin: 0 0 6px; }
.wx-ojs .obj_article_summary .title a { color: var(--wx-ink); }
.wx-ojs .obj_article_summary .title a:hover { color: var(--wx-purple); }
.wx-ojs .obj_article_summary .meta { font-size: 0.93rem; color: var(--wx-text); }
.wx-ojs .obj_article_summary .authors { font-weight: 500; }
.wx-ojs .obj_article_summary .galleys_links { margin: 12px 0 0; padding: 0; }
.wx-ojs .obj_article_summary .galleys_links li { list-style: none; display: inline-block; margin: 0 6px 6px 0; }
.wx-ojs .obj_article_summary .galleys_links .obj_galley_link { padding: 0.3rem 0.95rem; font-size: 0.9rem; }

/* archives: issue grid */
.wx-ojs .issues_archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; padding: 0; margin: 0; }
.wx-ojs .issues_archive > li { list-style: none; margin: 0; padding: 0; border: 0; }
.wx-ojs .obj_issue_summary {
  height: 100%; border: 1px solid var(--wx-line); border-radius: var(--wx-radius); padding: 14px; background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wx-ojs .obj_issue_summary:hover { box-shadow: var(--wx-shadow); transform: translateY(-3px); }
.wx-ojs .obj_issue_summary .cover { float: none; width: auto; margin: 0 0 10px; }
.wx-ojs .obj_issue_summary .cover img { width: 100%; height: auto; border-radius: 6px; }
.wx-ojs .obj_issue_summary h2 { font-size: 1.05rem; margin: 0 0 4px; }
.wx-ojs .obj_issue_summary .series { color: var(--wx-ink); font-weight: 700; }

/* ---------- article page */
.wx-ojs .obj_article_details > .page_title { font-size: clamp(1.5rem, 2.8vw, 2rem); }
/* OJS ".row" is not the Bootstrap grid: one column, details box (PDF, issue, dates) above the text */
.wx-ojs .obj_article_details .row { display: flex; flex-direction: column; margin: 0; }
.wx-ojs .obj_article_details .row > * { width: auto; max-width: none; padding: 0; }
.wx-ojs .obj_article_details .entry_details { order: -1; }
.wx-ojs .obj_article_details .main_entry,
.wx-ojs .obj_article_details .entry_details { float: none; width: auto; padding: 0; margin: 0; border: 0; }
.wx-ojs .obj_article_details .entry_details {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px;
  background: var(--wx-light); border-radius: var(--wx-radius); padding: 6px 20px; margin: 0 0 18px;
}
.wx-ojs .obj_article_details .item { padding: 16px 0; border-bottom: 1px solid var(--wx-line); }
.wx-ojs .obj_article_details .entry_details .item { border-bottom: 0; }
.wx-ojs .obj_article_details .item .label,
.wx-ojs .obj_article_details .sub_item .label {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--wx-purple); margin-bottom: 6px;
}
.wx-ojs .obj_article_details .authors .name { font-weight: 700; color: var(--wx-ink); }
.wx-ojs .obj_article_details .cover_image img { border-radius: var(--wx-radius-sm); }
.wx-ojs .obj_article_details .galleys_links { padding: 0; }
.wx-ojs .obj_article_details .galleys_links li { list-style: none; display: inline-block; margin: 0 6px 6px 0; }

/* ---------- announcements, static pages, about */
.wx-ojs .obj_announcement_summary { border: 1px solid var(--wx-line); border-radius: var(--wx-radius); padding: 20px 22px; margin-bottom: 16px; }
.wx-ojs .obj_announcement_summary h2, .wx-ojs .obj_announcement_summary h3 { margin-top: 0; }
.wx-ojs .obj_announcement_summary .date { color: var(--wx-purple); font-weight: 700; font-size: 0.9rem; }
.wx-ojs .pkp_structure_main table { width: 100%; border-collapse: collapse; }
.wx-ojs .pkp_structure_main th, .wx-ojs .pkp_structure_main td { border: 1px solid var(--wx-line); padding: 8px 10px; }
.wx-ojs .pkp_structure_main th { background: var(--wx-purple-soft); color: var(--wx-ink); }

/* pagination */
.wx-ojs .cmp_pagination { margin-top: 24px; font-weight: 600; }

/* article page: small cover inside the details box */
.wx-ojs .obj_article_details .entry_details .cover_image { grid-row: span 2; }
.wx-ojs .obj_article_details .entry_details .cover_image img { display: block; width: 100%; max-width: 160px; height: auto; border-radius: 6px; box-shadow: 0 8px 20px rgba(42,23,72,0.18); }
/* archives: one rule line only */
.wx-ojs.wx-ojs .page_issue_archive .issues_archive { border-top: 0; margin: 8px 0 0; }
.wx-ojs.wx-ojs .page_issue_archive .issues_archive > li { padding: 0; border: 0; }
/* login / register / profile forms: full-width fields */
.wx-ojs .cmp_form input[type="text"],
.wx-ojs .cmp_form input[type="email"],
.wx-ojs .cmp_form input[type="password"],
.wx-ojs .cmp_form input[type="url"],
.wx-ojs .cmp_form input[type="tel"],
.wx-ojs .cmp_form select,
.wx-ojs .cmp_form textarea { width: 100%; max-width: 460px; }
.wx-ojs .cmp_form .buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* buttons with a Default-theme icon box (search): plain icon before the text */
.wx-ojs .page_search .submit button { position: relative; padding-left: 1.15rem; }
.wx-ojs .page_search .submit button::after { position: static; display: inline; width: auto; height: auto; background: none; border: 0; margin-left: 6px; color: inherit; line-height: inherit; }
.wx-ojs .page_search .submit button::before { display: none; }
.wx-ojs .page_search select { border: 1px solid var(--wx-line); border-radius: var(--wx-radius-sm); padding: 0.4rem 0.5rem; background: #fff; }

/* ---------- account pages (login, lost password, register): form in a card */
.wx-ojs .page_login,
.wx-ojs .page_lost_password,
.wx-ojs .page_register {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--wx-line); border-radius: var(--wx-radius);
  box-shadow: var(--wx-shadow); padding: 34px clamp(22px, 5vw, 44px) 36px;
}
.wx-ojs .page_login,
.wx-ojs .page_lost_password { max-width: 520px; margin: 8px auto 0; }
.wx-ojs .page_login::before,
.wx-ojs .page_lost_password::before,
.wx-ojs .page_register::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--wx-purple), var(--wx-deep));
}
.wx-ojs .page_login .cmp_breadcrumbs,
.wx-ojs .page_lost_password .cmp_breadcrumbs,
.wx-ojs .page_register .cmp_breadcrumbs { display: none; }
.wx-ojs .page_login > h1,
.wx-ojs .page_lost_password > h1,
.wx-ojs .page_register > h1 { text-align: center; border: 0; padding: 0; margin-bottom: 6px; }
.wx-ojs .page_login > p,
.wx-ojs .page_lost_password > p,
.wx-ojs .page_register > p { text-align: center; font-size: 0.9rem; margin-bottom: 24px; }
.wx-ojs .page_login > h1::before,
.wx-ojs .page_lost_password > h1::before {
  font-family: "bootstrap-icons"; content: "\F4D7"; /* bi-person-circle */
  display: block; margin: 0 auto 10px; font-size: 2.6rem; line-height: 1; font-weight: 400; color: var(--wx-purple);
}
.wx-ojs .page_lost_password > h1::before { content: "\F44F"; } /* bi-key */

/* fields */
.wx-ojs .page_login .fields > div,
.wx-ojs .page_lost_password .fields > div { margin-bottom: 18px; }
.wx-ojs .page_login .cmp_form label,
.wx-ojs .page_lost_password .cmp_form label { display: block; }
.wx-ojs .page_login .cmp_form .label,
.wx-ojs .page_lost_password .cmp_form .label { display: block; margin-bottom: 6px; font-size: 0.95rem; }
.wx-ojs .page_login .cmp_form input[type="text"],
.wx-ojs .page_login .cmp_form input[type="password"],
.wx-ojs .page_lost_password .cmp_form input[type="text"],
.wx-ojs .page_lost_password .cmp_form input[type="email"] {
  max-width: none; height: 48px; padding: 0 14px; background: var(--wx-light); border-color: transparent;
}
.wx-ojs .page_login .cmp_form input:focus,
.wx-ojs .page_lost_password .cmp_form input:focus { background: #fff; border-color: var(--wx-purple); }
.wx-ojs .page_login .password a { display: block; text-align: right; margin-top: 8px; font-size: 0.88rem; font-weight: 600; }
.wx-ojs .page_login .remember label { display: flex; align-items: center; gap: 10px; }
.wx-ojs .page_login .remember input { width: 18px; height: 18px; accent-color: var(--wx-purple); }
.wx-ojs .page_login .remember .label { margin: 0; font-weight: 500; }

/* buttons: full-width Login, Register underneath */
.wx-ojs .page_login .buttons,
.wx-ojs .page_lost_password .buttons { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 8px; }
.wx-ojs .page_login .buttons button.submit,
.wx-ojs .page_lost_password .buttons button.submit { width: 100%; height: 50px; font-size: 1.05rem; margin: 0; }
.wx-ojs .page_login .buttons .register,
.wx-ojs .page_lost_password .buttons a {
  display: block; text-align: center; padding-top: 14px; border-top: 1px solid var(--wx-line);
}
.wx-ojs .page_login .pkp_form_error { border-radius: var(--wx-radius-sm); margin-bottom: 18px; }
/* Default theme limits the login form to 20em and pads each field row */
.wx-ojs .page_login .cmp_form,
.wx-ojs .page_lost_password .cmp_form { max-width: none; width: 100%; }
.wx-ojs .page_login .fields > div,
.wx-ojs .page_lost_password .fields > div, .wx-ojs .page_login .buttons, .wx-ojs .page_lost_password .buttons { padding-bottom: 0; margin-bottom: 0; }
.wx-ojs .page_login fieldset.fields,
.wx-ojs .page_lost_password fieldset.fields { margin: 0; }
.wx-ojs .page_login > h1:first-of-type,
.wx-ojs .page_lost_password > h1:first-of-type,
.wx-ojs .page_register > h1:first-of-type { border: 0; padding-bottom: 0; }

/* register page: compact rows, checkbox lines, Login as an outline button next to Register */
.wx-ojs .page_register .cmp_form fieldset { margin: 0 0 22px; }
.wx-ojs .page_register .cmp_form fieldset.consent,
.wx-ojs .page_register .cmp_form fieldset.reviewer { margin: 0; padding: 0; }
.wx-ojs .page_register .fields > div { padding-bottom: 16px; margin-bottom: 0; }
.wx-ojs .page_register .optin,
.wx-ojs .page_register .fields > .optin { padding-bottom: 10px; }
.wx-ojs .page_register .optin label { display: block; position: relative; padding-left: 28px; font-weight: 500; color: var(--wx-ink); line-height: 1.5; }
.wx-ojs .page_register .optin input[type="checkbox"] { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; margin: 0; accent-color: var(--wx-purple); }
.wx-ojs .page_register .reviewer_interests { padding: 0 0 10px 28px; }
.wx-ojs .page_register .buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--wx-line); }
.wx-ojs .page_register .buttons button.submit { margin: 0; padding: 0.6rem 1.8rem; }
.wx-ojs .pkp_structure_main .page_register .buttons a.login {
  display: inline-flex; align-items: center; padding: 0.55rem 1.6rem;
  border: 2px solid var(--wx-purple); border-radius: 999px; color: var(--wx-purple); font-weight: 600; text-decoration: none;
}
.wx-ojs .pkp_structure_main .page_register .buttons a.login:hover { background: var(--wx-purple); color: #fff; }
.wx-ojs .page_register .buttons > * { margin: 0; }
.wx-ojs .page_register .buttons button.submit,
.wx-ojs .pkp_structure_main .page_register .buttons a.login { height: 46px; padding: 0 1.8rem; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.wx-ojs .page_register .optin a { padding: 0; margin: 0; }
.wx-ojs .page_register .cmp_form input[type="text"],
.wx-ojs .page_register .cmp_form input[type="email"],
.wx-ojs .page_register .cmp_form input[type="password"],
.wx-ojs .page_register .cmp_form select { max-width: 520px; height: 46px; padding: 0 14px; background: var(--wx-light); border-color: transparent; }
.wx-ojs .page_register .cmp_form input:focus,
.wx-ojs .page_register .cmp_form select:focus { background: #fff; border-color: var(--wx-purple); }
.wx-ojs .page_register .cmp_form .label { display: block; margin-bottom: 6px; }
/* Default theme clearfix pseudo-elements would become flex items (extra gap) */
.wx-ojs .cmp_form .buttons::before,
.wx-ojs .cmp_form .buttons::after { display: none; }
