/* ==========================================================================
   PEDALYTICA — Header for OJS 3.5 (Default Theme)
   1. Upload pedalytica-header.png as the Logo:
      Settings > Website > Appearance > Setup > Logo
   2. Upload this file as the Journal style sheet (same page),
      or append it to your existing journal style sheet.
   ========================================================================== */

:root {
  --pd-navy:   #0f2a47;
  --pd-navy-d: #0a1d33;
  --pd-gold:   #b08d57;
  --pd-gold-l: #e6cfa4;
}

/* Header background matches the banner */
.pkp_structure_head {
  background: linear-gradient(180deg, var(--pd-navy) 0%, var(--pd-navy-d) 100%) !important;
  border-bottom: 0 !important;
}

/* Banner: full container width, no padding */
.pkp_site_name .is_img {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.pkp_site_name .is_img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .pkp_head_wrapper { padding-top: 56px !important; }
  .has_site_logo .pkp_head_wrapper { padding-top: 56px !important; }
  .pkp_site_name .is_img img { max-height: none !important; }
  .pkp_site_name_wrapper { margin-bottom: 0; }
  .pkp_site_name .is_img img {
    border-radius: 4px 4px 0 0;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6);
  }
}

/* Mobile: banner sits in the top bar next to the menu button */
@media (max-width: 991px) {
  .pkp_site_name .is_img img { max-height: 46px !important; width: auto; }
  .pkp_site_nav_toggle { background: transparent !important; }
  .pkp_site_nav_toggle > span,
  .pkp_site_nav_toggle > span::before,
  .pkp_site_nav_toggle > span::after { background: var(--pd-gold-l) !important; }
}

/* ---------- User menu (Register / Login), top-right ---------- */
.pkp_navigation_user_wrapper a,
.pkp_navigation_user > li > a {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .8rem;
  letter-spacing: .06em;
}
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  color: var(--pd-gold-l) !important;
}

/* ---------- Primary navigation row ---------- */
.pkp_navigation_primary_row {
  background: var(--pd-navy-d) !important;
  border-top: 1px solid rgba(214, 185, 138, .35);
}
@media (min-width: 992px) {
  .pkp_navigation_primary_row {
    padding: 0 12px;
    border-radius: 0 0 4px 4px;
  }
}
.pkp_navigation_primary > li > a {
  position: relative;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 0 !important;
}
.pkp_navigation_primary > li > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--pd-gold);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.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_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
  color: var(--pd-gold-l) !important;
}

/* Dropdown (About) */
.pkp_navigation_primary ul {
  border-top: 2px solid var(--pd-gold) !important;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 16px 30px -16px rgba(10, 29, 51, .5);
}
.pkp_navigation_primary ul a {
  color: var(--pd-navy) !important;
  border-left: 0 !important;
}
.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
  background: #faf8f4;
  color: var(--pd-gold) !important;
}

/* Search link */
.pkp_navigation_search_wrapper a {
  color: var(--pd-gold-l) !important;
  border-bottom: 0 !important;
}
.pkp_navigation_search_wrapper a:hover { color: #fff !important; }

/* ==========================================================================
   OVERRIDE SITE STYLE SHEET (public/site/styleSheet.css)
   The site-wide Joglo stylesheet loads AFTER this file and paints the
   header green (--jg-primary) with a brown line (--jg-wood).
   The selectors below are more specific, so they win for PEDALYTICA only.
   ========================================================================== */

/* Recolour the site palette for this journal: green -> navy, wood -> gold */
html:root {
  --jg-primary:      #0f2a47;
  --jg-primary-dark: #0a1d33;
  --jg-wood:         #b08d57;
  --jg-wood-soft:    #f7f1e6;
}

/* Header background matches the banner */
html body .pkp_structure_head,
html body .pkp_head_wrapper {
  background: #0f2a47 !important;
  border-bottom: 0 !important;
}

/* Menu row: dark navy with a gold underline */
html body .pkp_navigation_primary_row {
  background: #0a1d33 !important;
  border-bottom: 3px solid #b08d57 !important;
}

/* ==========================================================================
   EDITORIAL TEAM page (Static Page "editorial-team")
   ========================================================================== */
.jp-et {
  --et-navy: #0f2a47; --et-navy-d: #0a1d33; --et-gold: #b08d57; --et-gold-l: #e6cfa4;
  --et-cream: #faf8f4; --et-line: #e7e1d6; --et-muted: #5f6a78; --et-ink: #15212e;
  margin-top: 8px;
  font-family: inherit;
  color: var(--et-ink);
}

/* Section labels */
.jp-et-label {
  display: flex; align-items: center; gap: 14px;
  margin: 34px 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--et-navy);
}
.jp-et-label::before { content: ""; width: 28px; height: 2px; background: var(--et-gold); flex: none; }
.jp-et-label::after  { content: ""; flex: 1; height: 1px; background: var(--et-line); }
.jp-et > .jp-et-label:first-child { margin-top: 6px; }

/* Card */
.jp-et-card {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--et-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15,42,71,.04), 0 10px 24px -18px rgba(15,42,71,.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.jp-et-card:hover {
  transform: translateY(-2px);
  border-color: #dccfb9;
  box-shadow: 0 2px 4px rgba(15,42,71,.05), 0 18px 34px -20px rgba(15,42,71,.35);
}

/* Avatar (initials) */
.jp-et-avatar {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--et-cream);
  border: 1.5px solid var(--et-gold);
  color: var(--et-navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem; font-weight: 700; letter-spacing: .04em;
}
.jp-et-info { min-width: 0; }

.jp-et-role {
  margin-bottom: 4px;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--et-gold);
}
.jp-et-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.22rem; font-weight: 700; line-height: 1.25;
  color: var(--et-navy);
}
.jp-et-affil {
  margin-top: 3px;
  font-size: .92rem; line-height: 1.45;
  color: var(--et-muted);
}
.jp-et-affil strong { color: var(--et-ink); font-weight: 600; }

/* Profile links */
.jp-et-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jp-et-links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--et-line);
  border-radius: 999px;
  background: var(--et-cream);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--et-navy) !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.jp-et-links a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.jp-et-links a.jp-et-scopus::before  { background: #e9711c; }
.jp-et-links a.jp-et-scholar::before { background: #4285f4; }
.jp-et-links a:hover,
.jp-et-links a:focus {
  background: var(--et-navy);
  border-color: var(--et-navy);
  color: #fff !important;
}

/* Editor-in-Chief: navy feature card */
.jp-et-chief {
  padding: 30px 32px;
  background: radial-gradient(120% 140% at 0% 0%, #1a4473 0%, var(--et-navy) 50%, var(--et-navy-d) 100%);
  border: 0;
  border-bottom: 3px solid var(--et-gold);
}
.jp-et-chief .jp-et-avatar {
  width: 76px; height: 76px; font-size: 1.6rem;
  background: rgba(255,255,255,.06);
  border-color: var(--et-gold-l);
  color: var(--et-gold-l);
}
.jp-et-chief .jp-et-role  { color: var(--et-gold-l); }
.jp-et-chief .jp-et-name  { font-size: 1.6rem; color: #fff; }
.jp-et-chief .jp-et-affil { color: rgba(255,255,255,.75); }
.jp-et-chief .jp-et-affil strong { color: #fff; }
.jp-et-chief .jp-et-links a {
  background: rgba(255,255,255,.06);
  border-color: rgba(230,207,164,.45);
  color: #fff !important;
}
.jp-et-chief .jp-et-links a:hover,
.jp-et-chief .jp-et-links a:focus {
  background: var(--et-gold-l);
  border-color: var(--et-gold-l);
  color: var(--et-navy-d) !important;
}

/* Managing Editor: cream card with gold accent */
.jp-et-managing {
  background: var(--et-cream);
  border-left: 4px solid var(--et-gold);
}
.jp-et-managing .jp-et-avatar { background: #fff; width: 64px; height: 64px; }
.jp-et-managing .jp-et-name { font-size: 1.35rem; }

/* Editors grid */
.jp-et-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.jp-et-grid .jp-et-card { align-items: flex-start; }

@media (max-width: 700px) {
  .jp-et-grid { grid-template-columns: 1fr; }
  .jp-et-card, .jp-et-chief { padding: 20px; gap: 16px; align-items: flex-start; }
  .jp-et-chief .jp-et-avatar { width: 60px; height: 60px; font-size: 1.25rem; }
  .jp-et-chief .jp-et-name { font-size: 1.35rem; }
}

/* Intro paragraph (Reviewers page) */
.jp-et-intro { margin: -4px 0 18px; font-size: .95rem; line-height: 1.6; color: var(--et-muted); }

/* ==========================================================================
   FOOTER (Settings > Website > Appearance > Setup > Page Footer)
   ========================================================================== */
html body .pkp_structure_footer_wrapper {
  background: radial-gradient(120% 160% at 0% 0%, #163c69 0%, #0f2a47 45%, #0a1d33 100%) !important;
  border-top: 3px solid #b08d57 !important;
  color: rgba(255,255,255,.78);
}
html body .pkp_structure_footer { padding: 0 !important; }
html body .pkp_footer_content {
  float: none !important;
  width: 100% !important;
  padding: 44px 0 0 !important;
}
.jp-ft { font-size: .9rem; line-height: 1.65; }
.jp-ft-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr;
  gap: 36px;
  padding: 0 24px 32px;
}
.jp-ft p { margin: 0 0 10px; color: rgba(255,255,255,.75); }
.jp-ft strong { color: #fff; }
.jp-ft a { color: #e6cfa4 !important; text-decoration: none !important; }
.jp-ft a:hover, .jp-ft a:focus { color: #fff !important; text-decoration: underline !important; }

.jp-ft-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .06em; color: #fff;
}
.jp-ft-sub {
  margin: 2px 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic; color: #e6cfa4;
}
.jp-ft-issn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 6px; padding: 6px 14px;
  border: 1px solid rgba(230,207,164,.5); border-radius: 999px;
  font-weight: 600; letter-spacing: .06em; color: #fff;
}
.jp-ft-issn span { font-size: .72rem; letter-spacing: .2em; color: #e6cfa4; }

.jp-ft-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-size: .74rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: #e6cfa4;
}
.jp-ft-head::before { content: ""; width: 22px; height: 2px; background: #b08d57; }

.jp-ft-links { list-style: none; margin: 0; padding: 0; }
.jp-ft-links li { margin: 0 0 8px; padding: 0; }
.jp-ft-links a { color: rgba(255,255,255,.82) !important; }
.jp-ft-links a::before { content: "›"; margin-right: 8px; color: #b08d57; }

.jp-ft-bottom {
  padding: 18px 24px;
  border-top: 1px solid rgba(230,207,164,.2);
  text-align: center;
}
.jp-ft-bottom p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); }

/* OJS / PKP logo: small, light, centered */
html body .pkp_brand_footer {
  float: none !important;
  width: 100% !important;
  padding: 0 0 22px !important;
  text-align: center;
}
html body .pkp_brand_footer img {
  display: inline-block;
  max-width: 110px !important;
  opacity: .55;
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .jp-ft-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================================
   POLICY PAGES (Static Pages) + "Journal Policies" sidebar block
   ========================================================================== */
.jp-pol { color: #15212e; line-height: 1.7; }
.jp-pol p { margin: 0 0 14px; }
.jp-pol a { color: #1e4472; }
.jp-pol-lead {
  padding: 18px 22px;
  background: #faf8f4;
  border-left: 4px solid #b08d57;
  border-radius: 0 6px 6px 0;
  font-size: 1.02rem;
}
.jp-pol h3 {
  display: flex; align-items: center; gap: 12px;
  margin: 30px 0 14px;
  font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #0f2a47;
}
.jp-pol h3::before { content: ""; width: 26px; height: 2px; background: #b08d57; flex: none; }
.jp-pol h3::after  { content: ""; flex: 1; height: 1px; background: #e7e1d6; }
.jp-pol ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.jp-pol ul li { position: relative; margin: 0 0 9px; padding-left: 22px; }
.jp-pol ul li::before {
  content: ""; position: absolute; left: 4px; top: .7em;
  width: 7px; height: 7px; border-radius: 50%; background: #b08d57;
}

/* Cards grid (scope, issues) */
.jp-pol-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 8px; }
.jp-pol-card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e7e1d6;
  border-radius: 8px;
  box-shadow: 0 8px 20px -18px rgba(15,42,71,.35);
}
.jp-pol-card strong { display: block; margin-bottom: 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.02rem; color: #0f2a47; }
.jp-pol-card p { margin: 0; font-size: .9rem; color: #5f6a78; line-height: 1.55; }
.jp-pol-num { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: #b08d57; }
.jp-pol-issue { background: linear-gradient(135deg, #0f2a47, #0a1d33); border: 0; border-bottom: 3px solid #b08d57; }
.jp-pol-issue strong { color: #fff; font-size: 1.25rem; }
.jp-pol-issue p { color: rgba(255,255,255,.75); }
.jp-pol-issue .jp-pol-num { color: #e6cfa4; }

/* Workflow steps */
.jp-pol-steps { counter-reset: step; list-style: none; margin: 0 0 10px; padding: 0; }
.jp-pol-steps li {
  counter-increment: step;
  position: relative;
  margin: 0; padding: 0 0 18px 58px;
}
.jp-pol-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: #0f2a47; color: #e6cfa4;
  font-weight: 700; border: 2px solid #b08d57;
}
.jp-pol-steps li::after {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 2px;
  width: 2px; background: #e7e1d6;
}
.jp-pol-steps li:last-child::after { display: none; }
.jp-pol-steps strong { display: block; padding-top: 7px; color: #0f2a47; font-size: 1rem; }
.jp-pol-steps p { margin: 4px 0 0; color: #5f6a78; font-size: .93rem; }

/* Table */
.jp-pol-table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: .93rem; }
.jp-pol-table th { padding: 10px 14px; background: #0f2a47; color: #fff; text-align: left; font-weight: 600; }
.jp-pol-table td { padding: 10px 14px; border-bottom: 1px solid #e7e1d6; }
.jp-pol-table tr:nth-child(even) td { background: #faf8f4; }

/* Note */
.jp-pol-note {
  margin-top: 22px; padding: 14px 18px;
  background: #f7f1e6; border: 1px solid #ead9b8; border-radius: 6px;
  font-size: .92rem; color: #3a3a3a;
}

/* Sidebar block: Journal Policies */
.jp-polnav { list-style: none; margin: 0; padding: 0; }
.jp-polnav li { margin: 0; padding: 0; border-bottom: 1px solid #e7e1d6; }
.jp-polnav li:last-child { border-bottom: 0; }
.jp-polnav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  color: #0f2a47 !important; text-decoration: none !important;
  font-size: .92rem;
  transition: color .2s ease, padding-left .2s ease;
}
.jp-polnav a::before { content: "›"; color: #b08d57; font-weight: 700; }
.jp-polnav a:hover, .jp-polnav a:focus { color: #b08d57 !important; padding-left: 10px; }

@media (max-width: 700px) {
  .jp-pol-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SUBMISSIONS PAGE (Author Guidelines, Checklist, Copyright)
   Styled by the page's own ids/classes, so no classes are needed in the text
   ========================================================================== */
.page_submissions .cmp_notification {
  padding: 14px 18px !important;
  background: #f7f1e6 !important;
  border: 1px solid #ead9b8 !important;
  border-left: 4px solid #b08d57 !important;
  border-radius: 6px;
  color: #15212e;
}
.page_submissions h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 34px 0 16px !important;
  font-size: 1.25rem !important; color: #0f2a47 !important;
}
.page_submissions h2::before { content: ""; width: 26px; height: 2px; background: #b08d57; flex: none; }
.page_submissions h2::after  { content: ""; flex: 1; height: 1px; background: #e7e1d6; }

.author_guidelines { line-height: 1.7; color: #15212e; }
.author_guidelines p > strong:only-child {
  display: block;
  margin-top: 26px;
  font-size: .82rem; letter-spacing: .18em; color: #0f2a47;
}
.author_guidelines > p:first-of-type strong:only-child { margin-top: 0; font-size: 1rem; letter-spacing: 0; }
.author_guidelines ul,
.author_guidelines ol { padding-left: 22px; }
.author_guidelines li { margin-bottom: 7px; }
.author_guidelines li::marker { color: #b08d57; font-weight: 700; }

/* Template download link becomes a button */
.author_guidelines a[href*="libraryFiles/downloadPublic"] {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(180deg, #e2c895, #b08d57);
  border-radius: 4px;
  color: #0a1d33 !important;
  text-decoration: none !important;
  letter-spacing: .04em;
  box-shadow: 0 8px 18px -10px rgba(10,29,51,.6);
}
.author_guidelines a[href*="libraryFiles/downloadPublic"]:hover { filter: brightness(1.05); }
.author_guidelines a[href*="libraryFiles/downloadPublic"] strong { margin: 0 !important; font-size: .95rem !important; letter-spacing: .04em !important; color: inherit !important; display: inline !important; }

/* Checklist as a tick list */
.submission_checklist ul { list-style: none; padding: 0; }
.submission_checklist li {
  position: relative;
  margin-bottom: 10px; padding: 12px 16px 12px 46px;
  background: #fff; border: 1px solid #e7e1d6; border-radius: 6px;
}
.submission_checklist li::before {
  content: "✓";
  position: absolute; left: 14px; top: 11px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #0f2a47; color: #e6cfa4;
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
}
