/* ======================================================================
   LITPAM | LITORA UNIVERSAL JOURNAL STYLESHEET  v2.0
   JOURNAL: SPORTIFY JOURNAL
   INSTALL: OJS > Settings > Website > Appearance > Advanced > Journal Style Sheet
   CONTENT: General + Sidebar + Accordion + Editors + Policy pages + Mobile
   Change only the five brand colors to reuse for other LITPAM journals.
   Does not replace native navigation or edit OJS files.
   ====================================================================== */

/* 01 — JOURNAL DESIGN TOKENS */
:root {
  --litpam-primary: #16445c;
  --litpam-primary-dark: #0e3043;
  --litpam-primary-soft: #eaf3f6;
  --litpam-secondary: #b85c27;
  --litpam-secondary-soft: #fff1e7;
  --litpam-text: #263b48;
  --litpam-muted: #586d78;
  --litpam-border: #d9e5e9;
  --litpam-surface: #ffffff;
  --litpam-surface-soft: #f5f9fa;
  --litpam-radius: 10px;
  --litpam-shadow: 0 3px 14px rgba(15, 45, 61, 0.06);
}

/* 02 — SAFE GLOBAL IMPROVEMENTS: DO NOT REWRITE THE LITORA GRID */
:where(.pkp_structure_main, main, .litpam-page) img {
  max-width: 100%;
}
:where(.pkp_structure_main, main, .litpam-page) :is(p, li, a) {
  overflow-wrap: break-word;
}
:where(.pkp_structure_main, main, .litpam-page) a {
  overflow-wrap: anywhere;
}
:where(.pkp_structure_main, main, .pkp_structure_sidebar, aside) :focus-visible {
  outline: 3px solid var(--litpam-secondary);
  outline-offset: 2px;
}
::selection {
  background: var(--litpam-primary-soft);
  color: var(--litpam-primary-dark);
}

/* 03 — HEADER IMAGE (CONTAIN, NOT CROP) */
:where(.pkp_site_name, .journal-logo, .header-logo) img {
  max-width: 100%;
  max-height: 116px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 04 — LITORA/OJS PAGE TITLES */
:where(.pkp_structure_main, main) :is(.page_title, .page-header h1) {
  color: var(--litpam-primary);
  font-weight: 700;
  line-height: 1.3;
}
:where(.pkp_structure_main, main) :is(.page_title, .page-header h1)::after {
  content: '';
  display: block;
  background: var(--litpam-secondary);
  height: 3px;
  width: 60px;
  border-radius: 3px;
  margin-top: 10px;
}

/* 05 — EXISTING CUSTOM BLOCK BUTTONS (BACKWARD COMPATIBLE) */
:where(.pkp_structure_sidebar, .sidebar, aside) a.hvr-sweep-to-right {
  display: block;
  border-color: var(--litpam-primary) !important;
  border-radius: 7px;
  color: var(--litpam-primary);
  line-height: 1.45;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
:where(.pkp_structure_sidebar, .sidebar, aside) a.hvr-sweep-to-right::before {
  background: var(--litpam-primary);
  border-radius: 5px;
}
:where(.pkp_structure_sidebar, .sidebar, aside) a.hvr-sweep-to-right:hover,
:where(.pkp_structure_sidebar, .sidebar, aside) a.hvr-sweep-to-right:focus-visible {
  color: #ffffff !important;
}
:where(.pkp_structure_sidebar, .sidebar, aside) a.hvr-sweep-to-right .fa {
  margin-right: 5px;
}
:where(.pkp_structure_sidebar, .sidebar, aside) .title {
  color: var(--litpam-primary);
}
:where(.pkp_structure_sidebar, .sidebar, aside) .pkp_block {
  min-width: 0;
}

/* 06 — DROPDOWN / ACCORDION CUSTOM BLOCK (NATIVE HTML DETAILS) */
.litpam-accordion,
.litpam-accordion *,
.litpam-accordion *::before,
.litpam-accordion *::after {
  box-sizing: border-box;
}
.litpam-accordion {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--litpam-text);
  font-size: 14px;
}
.litpam-accordion > h2,
.litpam-accordion > .title {
  color: var(--litpam-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 13px;
  line-height: 1.4;
}
.litpam-accordion .litpam-dropdown {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--litpam-border);
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff;
}
.litpam-accordion .litpam-dropdown > summary {
  display: block;
  position: relative;
  padding: 12px 40px 12px 14px;
  margin: 0;
  color: var(--litpam-primary-dark);
  background: var(--litpam-primary-soft);
  border: 0;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  user-select: none;
}
.litpam-accordion .litpam-dropdown > summary::marker {
  content: '';
}
.litpam-accordion .litpam-dropdown > summary::-webkit-details-marker {
  display: none;
}
.litpam-accordion .litpam-dropdown > summary::after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 21px;
  line-height: 1;
  font-weight: 500;
}
.litpam-accordion .litpam-dropdown[open] > summary {
  color: #ffffff;
  background: var(--litpam-primary);
}
.litpam-accordion .litpam-dropdown[open] > summary::after {
  content: '\2212';
}
.litpam-accordion .litpam-dropdown > summary .fa {
  width: 19px;
  margin-right: 8px;
  text-align: center;
}
.litpam-accordion .litpam-dropdown-links {
  padding: 7px;
  background: #ffffff;
  border-top: 1px solid var(--litpam-border);
}
.litpam-accordion .litpam-dropdown:not([open]) > .litpam-dropdown-links {
  display: none;
}
.litpam-accordion .litpam-dropdown-links a {
  display: block;
  width: 100%;
  margin: 2px 0;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--litpam-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.litpam-accordion .litpam-dropdown-links a .fa {
  width: 19px;
  margin-right: 6px;
  color: var(--litpam-primary);
}
.litpam-accordion .litpam-dropdown-links a:hover,
.litpam-accordion .litpam-dropdown-links a:focus-visible {
  color: var(--litpam-primary-dark);
  background: var(--litpam-primary-soft);
  text-decoration: none;
}
.litpam-accordion .litpam-dropdown > summary:focus-visible,
.litpam-accordion .litpam-dropdown-links a:focus-visible {
  outline: 3px solid var(--litpam-secondary);
  outline-offset: -3px;
}

/* 07 — EDITORIAL TEAM AND REVIEWERS: SAME MARKUP, SAME LAYOUT */
#editorial-groups .group {
  margin-bottom: 25px;
}
#editorial-groups .group > :is(h2, .ped) {
  color: var(--litpam-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--litpam-primary);
}
.editorial-list ul,
.editorial-list ul.list-unstyled {
  margin: 0;
  padding: 0;
  list-style: none;
}
.editorial-list .editorial-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 20px 0;
  min-width: 0;
  border-bottom: 1px solid var(--litpam-border);
}
.editorial-list .editorial-item:last-child {
  border-bottom: 0;
}
.editorial-list .team-content {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}
.editorial-list .editor-name {
  color: var(--litpam-primary-dark);
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 6px;
  font-weight: 700;
}
.editorial-list .designation {
  font-size: 14px;
  line-height: 1.5;
  color: var(--litpam-muted);
  margin-bottom: 6px;
}
.editorial-list .team-aff p {
  margin: 4px 0;
  line-height: 1.6;
}
.editorial-list .team-aff strong {
  color: var(--litpam-primary-dark);
}
.editorial-list .academic-profile a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0 5px 2px 1px;
  color: var(--litpam-primary);
  text-decoration: none;
}
.editorial-list .academic-profile a:hover {
  color: var(--litpam-secondary);
}
.editorial-list .academic-profile img.ico-label {
  display: inline-block;
  width: 19px !important;
  height: 19px !important;
  max-width: 19px;
  max-height: 19px;
  object-fit: contain;
  vertical-align: middle;
}
.editorial-list .img-profile {
  order: 2;
  float: none;
  display: flex;
  flex: 0 0 108px;
  width: 108px;
  min-width: 108px;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.editorial-list .img-profile > img {
  display: block;
  width: 96px !important;
  height: 96px !important;
  min-width: 96px;
  max-width: none;
  max-height: none;
  border-radius: 50%;
  border: 2px solid var(--litpam-border);
  object-fit: cover;
  object-position: center;
  background: var(--litpam-primary-soft);
}

/* 08 — UNIVERSAL CUSTOM PAGE WRAPPER (USE CLASS="litpam-page") */
.litpam-page,
.litpam-page *,
.litpam-page *::before,
.litpam-page *::after {
  box-sizing: border-box;
}
.litpam-page {
  max-width: 100%;
  width: 100%;
  color: var(--litpam-text);
  font-size: 14px;
  line-height: 1.75;
}
.litpam-page :is(p, ul, ol) {
  margin-top: 0;
}
.litpam-page a:not(.litpam-button) {
  overflow-wrap: anywhere;
}
.litpam-hero {
  color: #ffffff;
  background: var(--litpam-primary);
  padding: 27px 24px;
  border-radius: 12px;
  margin: 0 0 18px;
}
.litpam-page .litpam-hero :is(h1, h2, h3, p) {
  color: #ffffff;
}
.litpam-page .litpam-hero :is(h1, h2) {
  margin: 0 0 11px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}
.litpam-page .litpam-hero p:last-child {
  margin-bottom: 0;
}
.litpam-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 12px;
  font-weight: 700;
  opacity: .94;
  margin: 0 0 8px;
}
.litpam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.litpam-card,
.litpam-section {
  background: var(--litpam-surface);
  border: 1px solid var(--litpam-border);
  border-radius: var(--litpam-radius);
  box-shadow: var(--litpam-shadow);
  padding: 20px;
  margin: 0 0 16px;
  min-width: 0;
}
.litpam-grid .litpam-card {
  margin-bottom: 0;
}
.litpam-card > :is(h2, h3),
.litpam-section > :is(h2, h3) {
  color: var(--litpam-primary);
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 12px;
}
.litpam-section > :is(h2, h3) {
  border-bottom: 1px solid var(--litpam-border);
  padding-bottom: 10px;
}
.litpam-card > :last-child,
.litpam-section > :last-child {
  margin-bottom: 0;
}
.litpam-page :is(h4, h5) {
  color: var(--litpam-primary-dark);
}
.litpam-section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--litpam-secondary);
  margin-bottom: 5px;
}
.litpam-note {
  margin: 13px 0;
  padding: 13px 15px;
  background: var(--litpam-primary-soft);
  border-left: 4px solid var(--litpam-primary);
  border-radius: 5px;
}
.litpam-note--accent {
  background: var(--litpam-secondary-soft);
  border-left-color: var(--litpam-secondary);
}
.litpam-navgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 9px;
  margin: 12px 0 20px;
}
.litpam-navgrid a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--litpam-border);
  border-radius: 7px;
  background: var(--litpam-primary-soft);
  color: var(--litpam-primary) !important;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none !important;
}
.litpam-navgrid a:hover,
.litpam-navgrid a:focus-visible {
  background: var(--litpam-primary);
  color: #ffffff !important;
  border-color: var(--litpam-primary);
}
.litpam-page a.litpam-button {
  display: inline-block;
  padding: 10px 17px;
  background: var(--litpam-primary);
  color: #ffffff !important;
  border: 1px solid var(--litpam-primary);
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
}
.litpam-page a.litpam-button:hover {
  background: var(--litpam-primary-dark);
  border-color: var(--litpam-primary-dark);
}
.litpam-page a.litpam-button--outline {
  color: var(--litpam-primary) !important;
  background: #ffffff;
}
.litpam-page a.litpam-button--outline:hover {
  background: var(--litpam-primary-soft);
}

/* 09 — TABLES INSIDE CUSTOM PAGES */
.litpam-page .litpam-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.litpam-page table.litpam-table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 13px;
}
.litpam-page table.litpam-table th {
  background: var(--litpam-primary);
  color: #ffffff;
  text-align: left;
}
.litpam-page table.litpam-table :is(th, td) {
  padding: 10px 12px;
  border: 1px solid var(--litpam-border);
  vertical-align: top;
}
.litpam-page table.litpam-table tbody tr:hover {
  background: var(--litpam-surface-soft);
}

/* 10 — ISSUE / ARTICLE SUMMARY: LOW-RISK STYLING */
:where(.pkp_structure_main, main) .obj_article_summary {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--litpam-border);
}
:where(.pkp_structure_main, main) .obj_article_summary .title a {
  color: var(--litpam-primary);
  text-decoration: none;
}
:where(.pkp_structure_main, main) .obj_article_summary .title a:hover {
  color: var(--litpam-secondary);
  text-decoration: underline;
}

/* 11 — MOBILE: PRESERVE PHOTO TO THE RIGHT AND SIDEBAR FLOW */
@media (max-width: 768px) {
  :where(.pkp_site_name, .journal-logo, .header-logo) img {
    max-height: 85px;
  }
  .editorial-list .editorial-item {
    gap: 12px;
    padding: 16px 0;
  }
  .editorial-list .img-profile {
    flex-basis: 82px;
    width: 82px;
    min-width: 82px;
  }
  .editorial-list .img-profile > img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
  }
  .editorial-list .editor-name {
    font-size: 16px;
  }
  .editorial-list .designation {
    font-size: 13px;
  }
  .litpam-hero {
    padding: 22px 17px;
  }
  .litpam-page .litpam-hero :is(h1, h2) {
    font-size: 23px;
  }
  .litpam-card,
  .litpam-section {
    padding: 16px;
  }
  .litpam-accordion .litpam-dropdown > summary {
    padding: 12px 38px 12px 12px;
  }
}
@media (max-width: 420px) {
  .editorial-list .editorial-item { gap: 9px; }
  .editorial-list .img-profile {
    flex-basis: 68px;
    width: 68px;
    min-width: 68px;
  }
  .editorial-list .img-profile > img {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px;
  }
  .litpam-accordion .litpam-dropdown-links a { font-size: 13px; }
}

/* 12 — ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .litpam-page *,
  .litpam-accordion *,
  :where(.pkp_structure_sidebar, .sidebar, aside) a.hvr-sweep-to-right {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ========================= END STYLESHEET ========================= */



/* LITPAM SPORTIFY PAGE FINISHING CLASSES: add to existing stylesheet */
.sportify-page .sportify-chips { display:flex;flex-wrap:wrap;gap:8px;margin-top:15px; }
.sportify-page .sportify-chip { padding:6px 10px;border-radius:40px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.35);font-size:12px;color:#fff;font-weight:600; }
.sportify-page .sportify-page-footer {padding:20px 24px;border-radius:10px;background:var(--litpam-primary,#16445c);color:#fff;text-align:center;margin-top:24px;}
.sportify-page .sportify-page-footer strong,.sportify-page .sportify-page-footer p {color:#fff;}
.sportify-page .sportify-page-footer .litpam-button {margin:4px;}
.sportify-page .litpam-section {scroll-margin-top:90px;}
.sportify-page .litpam-section a {color:var(--litpam-primary,#16445c);text-decoration:underline;text-decoration-color:rgba(22,68,92,.3);text-underline-offset:2px;font-weight:600;}
.sportify-page .litpam-section a:hover {color:var(--litpam-secondary,#b85c27);}
.sportify-page .litpam-grid .litpam-card h3 {font-size:16px;}
.litpam-accordion .litpam-dropdown-links .litpam-pending {display:block;padding:9px 11px;margin:2px 0;border-radius:6px;background:#f3f5f6;color:#687681;font-size:13px;cursor:not-allowed;}
.litpam-accordion .litpam-dropdown-links .litpam-pending .fa {width:19px;margin-right:6px;}
@media(max-width:600px){.sportify-page .sportify-page-footer {padding:17px 13px;}}
