:root {
  --tm-red: #ab3834;
  --tm-red-dark: #8f2d2a;
  --tm-text: #222;
  --tm-muted: #666;
  --tm-border: #e8e2df;
  --tm-width: 1500px;
}

/* ==========================================================
   Trauma and Memory — OJS 3.3 redesign stylesheet
   Direction A: editorial white navigation
   ========================================================== */

/* Base */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body {
  background: #fff;
  color: var(--tm-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

.pkp_structure_page {
  overflow-x: hidden !important;
}

a {
  color: var(--tm-red);
}

a:hover,
a:focus {
  color: var(--tm-red-dark);
}

/* Header */
.pkp_structure_head {
  position: relative !important;
  background: #fff !important;
  border: 0 !important;
  overflow: visible !important;
}

.pkp_head_wrapper {
  position: relative !important;
  max-width: var(--tm-width) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.pkp_site_name_wrapper {
  max-width: var(--tm-width) !important;
  margin: 0 auto !important;
  padding: 64px 0 48px !important;
  border: 0 !important;
}

.pkp_site_name {
  width: 100%;
  text-align: left;
}

.pkp_site_name:after {
  content: none !important;
  display: none !important;
}

/* Editorial two-column header — requires tm_editorial_header markup */
.tm_editorial_header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 110px;
  align-items: center;
  margin-bottom: 30px;
}

.tm_header_title a {
  color: var(--tm-red) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.05;
  text-decoration: none;
}

.tm_subtitle {
  margin-top: 18px;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
}

.tm_header_meta {
  color: #222;
  font-size: 15px;
  line-height: 1.55;
}

.tm_header_meta p {
  margin: 0 0 7px;
}

.tm_header_meta strong,
.tm_header_meta em {
  color: var(--tm-red);
}

.tm_header_meta em {
  font-family: Georgia, "Times New Roman", serif;
}

/* Admin/user menu: anchored to header, not to public navigation */
.pkp_navigation_user_wrapper {
  position: absolute !important;
  top: 14px !important;
  right: 24px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 48px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
  z-index: 20 !important;
  box-sizing: border-box !important;
}

.pkp_navigation_user {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pkp_navigation_user a,
.pkp_navigation_user > li > a {
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.pkp_navigation_user a:hover,
.pkp_navigation_user > li > a:hover {
  color: var(--tm-red) !important;
}

/* Restore OJS notification badge in custom admin position */
#navigationUserWrapper .task_count,
#navigationUserWrapper .badge,
#navigationUserWrapper .notification_count,
#navigationUserWrapper .pkp_notification_count {
  display: inline-block !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  padding: 0 5px !important;
  margin: 0 6px !important;
  border-radius: 999px !important;
  background: var(--tm-red) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Primary navigation — editorial white direction */
.pkp_site_nav_menu {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: calc(50vw - 50%) !important;
  padding-right: calc(50vw - 50%) !important;
  background: #fff !important;
  border-top: 2px solid var(--tm-red) !important;
  border-bottom: 1px solid var(--tm-border) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.pkp_navigation_primary_row {
  max-width: var(--tm-width) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

.pkp_navigation_primary_wrapper {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 58px !important;
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.pkp_navigation_primary {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  gap: 8px;
}

.pkp_navigation_primary > li > a {
  position: relative;
  padding: 18px 18px !important;
  color: var(--tm-red) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.pkp_navigation_primary > li > a:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 2px;
  background: var(--tm-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: var(--tm-red-dark) !important;
  background: transparent !important;
}

.pkp_navigation_primary > li > a:hover:after,
.pkp_navigation_primary > li > a:focus:after,
.pkp_navigation_primary > li.current > a:after {
  transform: scaleX(1);
}

.pkp_navigation_search_wrapper {
  margin-left: auto !important;
  white-space: nowrap !important;
}

.pkp_search {
  position: relative;
  color: var(--tm-red) !important;
  background: transparent !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.pkp_search:hover,
.pkp_search:focus {
  color: var(--tm-red-dark) !important;
}

/* Layout */
.pkp_structure_content,
.pkp_structure_content.has_sidebar {
  display: block !important;
  max-width: var(--tm-width) !important;
  margin: 0 auto !important;
  padding: 56px 24px !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

.pkp_structure_main {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
}

.pkp_structure_sidebar {
  display: none !important;
}

.pkp_structure_content:before,
.pkp_structure_content:after,
.pkp_structure_main:before,
.pkp_structure_main:after {
  content: none !important;
  display: none !important;
}

/* Homepage */
.page_index_journal {
  max-width: 100%;
}

.current_issue {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.current_issue > h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
}

.current_issue_title {
  margin-bottom: 22px;
  color: var(--tm-red);
  font-size: 30px;
  font-weight: 400;
}

/* Issue table of contents */
.obj_issue_toc {
  border: 0 !important;
}

.obj_issue_toc .heading {
  margin-bottom: 40px;
}

.obj_issue_toc .published {
  font-size: 16px;
}

.obj_issue_toc .published .label {
  font-weight: 700;
}

.obj_issue_toc .section {
  margin: 42px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.obj_issue_toc .section > h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  color: var(--tm-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
}

.obj_issue_toc .section > h3:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tm-border);
}

/* Article lists */
.cmp_article_list {
  margin: 0 !important;
  padding: 0 !important;
}

.cmp_article_list > li {
  list-style: none;
  border-bottom: 1px solid var(--tm-border);
}

.obj_article_summary {
  position: relative;
  min-height: 0 !important;
  padding: 24px 0 !important;
  border: 0 !important;
}

.obj_article_summary .title {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  line-height: 1.35;
}

.obj_article_summary .title a {
  color: var(--tm-text) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.obj_article_summary .title a:hover {
  color: var(--tm-red) !important;
}

.obj_article_summary .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.obj_article_summary .authors {
  color: var(--tm-muted);
  font-size: 14px;
}

.obj_article_summary .pages {
  color: #888;
  font-size: 14px;
}

.obj_article_summary .galleys_links {
  margin-top: 12px !important;
  padding: 0 !important;
}

.obj_article_summary .galleys_links li {
  list-style: none;
}

/* PDF buttons */
.obj_galley_link,
.obj_galley_link.pdf {
  display: inline-block;
  padding: 8px 13px !important;
  background: var(--tm-red) !important;
  border: 1px solid var(--tm-red) !important;
  border-radius: 3px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.obj_galley_link:hover,
.obj_galley_link.pdf:hover {
  background: var(--tm-red-dark) !important;
  border-color: var(--tm-red-dark) !important;
}

.read_more {
  display: inline-block;
  margin-top: 34px;
  color: var(--tm-red) !important;
  font-weight: 700;
  text-decoration: none;
}

/* Article page */
.page_article .article_main,
.page_article .entry_details {
  border: 0 !important;
}

.page_article .article_main {
  max-width: 760px;
}

.page_article .entry_details {
  background: #fafafa;
  border-left: 1px solid var(--tm-border) !important;
}

/* Footer */
.pkp_structure_footer_wrapper {
  margin-top: 40px;
  background: #f1f1f1 !important;
  border: 0 !important;
}

.pkp_structure_footer {
  max-width: var(--tm-width) !important;
  margin: 0 auto;
  padding: 38px 24px;
}

.pkp_brand_footer {
  opacity: .45;
}

/* Responsive */
@media (max-width: 900px) {
  .tm_editorial_header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tm_header_title a {
    font-size: 42px;
  }

  .tm_subtitle {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .pkp_head_wrapper {
    padding: 0 20px !important;
  }

  .pkp_site_name_wrapper {
    padding: 28px 0 !important;
  }

  .pkp_navigation_primary {
    display: block !important;
  }

  .pkp_navigation_primary > li > a {
    padding: 14px 18px !important;
  }

  .pkp_navigation_primary > li > a:after {
    display: none !important;
  }

  .pkp_structure_content,
  .pkp_structure_content.has_sidebar {
    padding: 34px 20px !important;
  }

  .obj_article_summary .meta {
    display: block;
  }

  .obj_article_summary .pages {
    margin-top: 8px;
  }

  .obj_article_summary .galleys_links {
    margin-top: 14px !important;
  }
}


/* ==========================================================
   Header variant — Eupsycho red background, white lettering
   ========================================================== */

.pkp_structure_head {
  background: var(--tm-red) !important;
}

.pkp_head_wrapper,
.pkp_site_name_wrapper {
  background: transparent !important;
}

.tm_header_title a {
  color: #fff !important;
}

.tm_subtitle,
.tm_header_meta,
.tm_header_meta p {
  color: rgba(255, 255, 255, .92) !important;
}

.tm_header_meta strong,
.tm_header_meta em {
  color: #fff !important;
}

.pkp_navigation_user a,
.pkp_navigation_user > li > a {
  color: rgba(255, 255, 255, .9) !important;
}

.pkp_navigation_user a:hover,
.pkp_navigation_user > li > a:hover {
  color: #fff !important;
}

/* Keep the editorial white nav separate from the red masthead */
.pkp_site_nav_menu {
  background: #fff !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--tm-border) !important;
}


/* ==========================================================
   Admin dropdown refinement
   ========================================================== */

/* Dropdown panel */
#navigationUserWrapper .dropdown-menu {
  background: #fff !important;
  border: 1px solid var(--tm-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
}

/* Dropdown menu links: black text */
#navigationUserWrapper .dropdown-menu a,
#navigationUserWrapper .dropdown-menu li a {
  color: var(--tm-text) !important;
  background: transparent !important;
}

#navigationUserWrapper .dropdown-menu a:hover,
#navigationUserWrapper .dropdown-menu li a:hover,
#navigationUserWrapper .dropdown-menu a:focus,
#navigationUserWrapper .dropdown-menu li a:focus {
  color: var(--tm-red) !important;
  background: #f7f7f7 !important;
}

/* Notification badge inside admin dropdown: white background */
#navigationUserWrapper .dropdown-menu .task_count {
  background: #fff !important;
  color: var(--tm-red) !important;
  border: 1px solid var(--tm-red) !important;
}

/* Notification badge in top admin link over red header */
#navigationUserWrapper > .pkp_navigation_user .task_count,
#navigationUserWrapper .pkp_navigation_user > li > a .task_count {
  background: #fff !important;
  color: var(--tm-red) !important;
  border: 1px solid #fff !important;
}


/* Dropdown notification badge: red background */
#navigationUserWrapper .dropdown-menu .task_count {
  background: var(--tm-red) !important;
  color: #fff !important;
  border: 1px solid var(--tm-red) !important;
}


/* Reduce the red masthead band below the white navigation */
.pkp_site_nav_menu {
  margin-bottom: -36px !important;
}

.pkp_structure_content,
.pkp_structure_content.has_sidebar {
  padding-top: 28px !important;
}

@media (min-width: 992px) {
  .pkp_navigation_user > li:last-child > a {
    margin-right: 8.3rem;
  }
  .pkp_nav_list ul {
    margin-right: 54px;
}

/* Better spacing for TOC rows without enlarging titles */
.obj_issue_toc .section:first-child,
.obj_issue_toc .section:nth-child(2) {
  margin-top: 56px !important;
}

.obj_issue_toc .section:first-child .obj_article_summary,
.obj_issue_toc .section:nth-child(2) .obj_article_summary {
  padding-top: 18px !important;
  padding-bottom: 28px !important;
}

.obj_issue_toc .section:first-child .obj_article_summary .title,
.obj_issue_toc .section:nth-child(2) .obj_article_summary .title,
.obj_issue_toc .section:first-child .obj_article_summary .title a,
.obj_issue_toc .section:nth-child(2) .obj_article_summary .title a {
  font-size: 20px !important;
  line-height: 1.35 !important;
  margin-bottom: 0 !important;
}




/* ==========================================================
   Trauma and Memory — custom homepage blocks
   Requires indexJournal_HOME_MOCKUP.tpl
   ========================================================== */

.tm_home_hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 72px;
  align-items: start;
  padding: 48px 0 54px;
  border-bottom: 1px solid var(--tm-border);
}

.tm_home_kicker {
  margin-bottom: 12px;
  color: var(--tm-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tm_home_hero h2 {
  margin: 0 0 26px;
  color: var(--tm-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.12;
}

.tm_home_hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tm_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.tm_button_primary {
  background: var(--tm-red);
  border: 1px solid var(--tm-red);
  color: #fff !important;
}

.tm_button_primary:hover,
.tm_button_primary:focus {
  background: var(--tm-red-dark);
  border-color: var(--tm-red-dark);
  color: #fff !important;
}

.tm_button_secondary {
  background: transparent;
  border: 1px solid var(--tm-red);
  color: var(--tm-red) !important;
}

.tm_button_secondary:hover,
.tm_button_secondary:focus {
  background: rgba(171, 56, 52, .06);
  color: var(--tm-red-dark) !important;
}

.tm_home_hero_about {
  padding-left: 42px;
  border-left: 1px solid var(--tm-border);
}

.tm_home_hero_about h3 {
  margin: 0 0 18px;
  color: var(--tm-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.tm_home_hero_about p {
  margin: 0 0 22px;
  max-width: 520px;
  color: var(--tm-text);
  font-size: 16px;
  line-height: 1.75;
}

.tm_text_link {
  color: var(--tm-red) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.tm_text_link:hover,
.tm_text_link:focus {
  color: var(--tm-red-dark) !important;
  text-decoration: underline !important;
}

.tm_home_cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 54px 0 64px;
}

.tm_home_card {
  display: block;
  min-height: 190px;
  padding: 30px 32px;
  border: 1px solid var(--tm-border);
  background: #fff;
  color: var(--tm-text) !important;
  text-decoration: none !important;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tm_home_card:hover,
.tm_home_card:focus {
  border-color: rgba(171, 56, 52, .45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .055);
  transform: translateY(-2px);
}

.tm_card_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(171, 56, 52, .08);
  color: var(--tm-red);
}

.tm_card_icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.tm_card_title {
  display: block;
  margin-bottom: 14px;
  color: var(--tm-text);
  font-size: 22px;
  font-weight: 700;
}

.tm_card_text {
  display: block;
  max-width: 260px;
  margin-bottom: 24px;
  color: var(--tm-muted);
  font-size: 15px;
  line-height: 1.6;
}

.tm_card_link {
  color: var(--tm-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tm_home_card:hover .tm_card_link,
.tm_home_card:focus .tm_card_link {
  color: var(--tm-red-dark);
  text-decoration: underline;
}

.tm_recent_issue {
  margin-top: 0 !important;
}

.tm_recent_issue > h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px !important;
  color: var(--tm-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

.tm_recent_issue > h2:after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tm-border);
}

.tm_home_about,
.tm_home_announcements {
  margin: 54px 0;
  padding: 34px 0;
  border-top: 1px solid var(--tm-border);
  border-bottom: 1px solid var(--tm-border);
}

/* On the homepage, avoid duplicated "Current Issue" styling from old layout */
.tm_home .current_issue_title {
  margin-bottom: 0;
}

/* Responsive homepage */
@media (max-width: 900px) {
  .tm_home_hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 34px 0 42px;
  }

  .tm_home_hero_about {
    padding-left: 0;
    border-left: 0;
  }

  .tm_home_cards {
    grid-template-columns: 1fr;
    margin: 38px 0 46px;
  }

  .tm_home_hero h2 {
    font-size: 38px;
  }
}
