/* ================================================================
   KWARARAFA SECURITY REVIEW — MASTER OJS STYLESHEET
   ----------------------------------------------------------------
   HOW TO INSTALL
   OJS Admin > Settings > Website > Appearance > Setup >
   "Additional Stylesheet" — upload this single file. No template
   or PHP edits required.

   HOW TO RE-SKIN THE JOURNAL
   Everything below is driven by the design tokens in section 1.
   Change a handful of variables there (colours, fonts, radius,
   spacing) and the whole site — header, nav, article lists,
   sidebar, buttons, tables, footer, and the custom policy pages —
   updates together. Section-by-section overrides live below the
   tokens if you need finer control than the variables give you.

   NOTE ON SELECTORS
   Sections 2–12 target class names used by OJS 3.x's built-in
   "Default Theme". If your installation runs a different theme
   (Bootstrap3 or a custom child theme), inspect the live page in
   your browser's dev tools and swap the class names — the tokens
   and the intent of each section stay the same either way.

   TABLE OF CONTENTS
     1.  Design tokens (colours, fonts, spacing, radii)
     2.  Global resets & base typography
     3.  Links, headings, selection
     4.  Header / masthead (site name, logo, custom banner)
     5.  Primary navigation
     6.  User / utility bar (register, login, search)
     7.  Breadcrumbs
     8.  Layout shell (main + sidebar grid)
     9.  Article listings (issue table of contents)
     10. Single article page (title, meta, abstract, galleys)
     11. Sidebar blocks (About, journal info, browse, etc.)
     12. Buttons & form elements
     13. Tables
     14. Notices, alerts & announcements
     15. Pagination
     16. Footer
     17. Static / custom policy pages (About, Aim & Scope, etc.)
     18. Utility classes
     19. Print styles
     20. Responsive breakpoints
   ================================================================ */


/* ================================================================
   1. DESIGN TOKENS — change these to re-skin the entire journal
   ================================================================ */
:root{
  /* --- brand palette, sampled from the official Kwararafa University
     Wukari seal (gold ring, black text/emblem, green ribbon) ---
     Variable names below are kept as-is for compatibility with the
     rest of this file; only the colour VALUES changed to match the
     real logo. */
  --ksr-navy:        #17150e;   /* was navy — now the seal's black. Header, headings, nav */
  --ksr-navy-deep:   #0c0b07;   /* darkest shade: footer, deepest gradients */
  --ksr-maroon:       #2f8f4e;  /* was maroon — now the seal's ribbon green. Accent/secondary: hovers, tags, links */
  --ksr-maroon-dk:    #1f6b39;  /* darker green: hover/active state */
  --ksr-gold:         #cd9c3b;  /* the seal's gold ring: rules, borders, badges */
  --ksr-gold-lt:      #e8cf8f;  /* lighter gold for text on dark backgrounds */

  /* --- neutrals --- */
  --ksr-paper:        #f7f4ee;  /* page background */
  --ksr-card:         #ffffff;  /* card/panel background */
  --ksr-ink:          #22221c;  /* body text (warm black to match the seal) */
  --ksr-muted:        #5b5a4f;  /* secondary text, captions */
  --ksr-line:         #e1dccf;  /* borders, rules, table lines */

  /* --- state colours --- */
  --ksr-success:      #2f8f4e;
  --ksr-success-bg:   #eaf4ee;
  --ksr-warning:      #8a6414;
  --ksr-warning-bg:   #fbf6e8;
  --ksr-danger:       #8c2c2c;
  --ksr-danger-bg:    #fbecec;
  --ksr-info:         #285e73;
  --ksr-info-bg:      #eaf3f6;

  /* --- typography --- */
  --ksr-font-head:   "Merriweather", Georgia, "Times New Roman", serif;
  --ksr-font-body:   "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --ksr-font-mono:   "Source Code Pro", Consolas, monospace;
  --ksr-fs-base:     16px;
  --ksr-lh-base:     1.65;

  /* --- geometry --- */
  --ksr-radius-sm:   4px;
  --ksr-radius:      10px;
  --ksr-radius-lg:   16px;
  --ksr-shadow-sm:   0 2px 8px rgba(23,21,14,.06);
  --ksr-shadow:      0 4px 18px rgba(23,21,14,.08);
  --ksr-shadow-lg:   0 10px 34px rgba(23,21,14,.14);
  --ksr-gap:         20px;
  --ksr-container-w: 1180px;

  /* --- header/banner gradient (edit to match a new banner image) --- */
  --ksr-banner-grad: linear-gradient(120deg, var(--ksr-navy-deep) 10%, var(--ksr-maroon-dk) 100%);
}


/* ================================================================
   2. GLOBAL RESETS & BASE TYPOGRAPHY
   ================================================================ */
html{ box-sizing:border-box; }
*, *::before, *::after{ box-sizing:inherit; }

body{
  background:var(--ksr-paper) !important;
  color:var(--ksr-ink) !important;
  font-family:var(--ksr-font-body) !important;
  font-size:var(--ksr-fs-base) !important;
  line-height:var(--ksr-lh-base) !important;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; }

::selection{ background:var(--ksr-gold); color:var(--ksr-navy-deep); }


/* ================================================================
   3. LINKS, HEADINGS
   ================================================================ */
a{ color:var(--ksr-maroon) !important; text-decoration:none; }
a:hover, a:focus{ color:var(--ksr-maroon-dk) !important; text-decoration:underline; }

h1, h2, h3, h4, h5,
.page_title,
.pkp_page_title{
  font-family:var(--ksr-font-head) !important;
  color:var(--ksr-navy) !important;
  line-height:1.25;
  font-weight:700;
}

h1{ font-size:2rem; }
h2{ font-size:1.5rem; }
h3{ font-size:1.15rem; color:var(--ksr-maroon-dk) !important; }


/* ================================================================
   4. HEADER / MASTHEAD (site name, logo, optional custom banner)
   ================================================================ */
.pkp_structure_head,
.pkp_head_wrapper{
  background:var(--ksr-banner-grad) !important;
  border-bottom:4px solid var(--ksr-gold) !important;
  padding:18px 0 !important;
}

.pkp_site_name_wrapper,
.pkp_site_name,
.pkp_site_name a{
  color:#ffffff !important;
  font-family:var(--ksr-font-head) !important;
  font-size:1.6rem !important;
  letter-spacing:.01em;
}

/* Circular badge treatment removed — it was being applied to every
   image inside the header wrapper, including the wide custom
   banner, clipping it into a sphere. Header images (banner or
   logo) now render as-is, at their natural shape. */

/* if you swap in the standalone SVG banner as a full-width image */
.ksr-custom-banner{
  display:block;
  width:100%;
  height:auto;
  border-bottom:4px solid var(--ksr-gold);
}


/* ================================================================
   5. PRIMARY NAVIGATION — INTENTIONALLY LEFT UNSTYLED
   ------------------------------------------------------------
   No rules here. The menu (top-level bar and all dropdowns) is
   left 100% on the default OJS theme's own CSS/JS, colours,
   layout, and mobile toggle behaviour. If you want the menu
   themed later, styling it safely means matching this specific
   install's real class names first (inspect the live menu in
   your browser's dev tools) rather than guessing — see the notes
   further down this file for what to send back.
   ================================================================ */


/* ================================================================
   6. USER / UTILITY BAR (register, login, search)
   ================================================================ */
.pkp_navigation_user,
#navigationUser{
  background:var(--ksr-navy-deep) !important;
  color:#cfd8de !important;
  font-size:.82rem;
}

.pkp_navigation_user a,
#navigationUser a{ color:#cfd8de !important; }
.pkp_navigation_user a:hover,
#navigationUser a:hover{ color:var(--ksr-gold-lt) !important; }

/* search box */
.pkp_search_form input[type="text"],
.pkp_search_form input[type="search"],
input.form_control[type="search"]{
  border:1px solid var(--ksr-line) !important;
  border-radius:var(--ksr-radius-sm) !important;
  padding:6px 10px !important;
}
.pkp_search_form button,
.pkp_search_form .pkp_button{
  background:var(--ksr-maroon) !important;
  color:#fff !important;
  border-radius:var(--ksr-radius-sm) !important;
}


/* ================================================================
   7. BREADCRUMBS
   ================================================================ */
.pkp_structure_path,
.cmp_breadcrumbs,
.breadcrumb{
  font-size:.85rem;
  color:var(--ksr-muted) !important;
  padding:10px 0;
}
.pkp_structure_path a,
.cmp_breadcrumbs a,
.breadcrumb a{ color:var(--ksr-maroon) !important; }


/* ================================================================
   8. LAYOUT SHELL (main content + sidebar grid)
   ================================================================ */
.pkp_structure_main,
.pkp_structure_content{
  background:transparent !important;
  padding-top:var(--ksr-gap);
  padding-bottom:calc(var(--ksr-gap) * 2);
}

.pkp_structure_sidebar{
  padding-top:var(--ksr-gap);
}


/* ================================================================
   9. ARTICLE LISTINGS (issue table of contents)
   ================================================================ */
.cmp_article_summary,
.obj_article_summary{
  background:var(--ksr-card) !important;
  border:1px solid var(--ksr-line) !important;
  border-radius:var(--ksr-radius) !important;
  box-shadow:var(--ksr-shadow-sm);
  padding:18px 20px !important;
  margin-bottom:18px !important;
  transition:box-shadow .15s ease, transform .15s ease;
}
.cmp_article_summary:hover,
.obj_article_summary:hover{
  box-shadow:var(--ksr-shadow);
}

.cmp_article_summary .title a,
.obj_article_summary .title a,
.obj_article_summary .title{
  color:var(--ksr-navy) !important;
  font-family:var(--ksr-font-head) !important;
  font-size:1.1rem;
}

.cmp_article_summary .authors,
.obj_article_summary .authors{
  color:var(--ksr-muted) !important;
  font-size:.92rem;
  margin:4px 0;
}

.cmp_article_summary .pages,
.obj_article_summary .pages{
  color:var(--ksr-muted) !important;
  font-size:.85rem;
}

/* galley/PDF download pill */
.obj_galley_link,
.cmp_galley_link{
  display:inline-block;
  background:var(--ksr-navy) !important;
  color:#fff !important;
  font-size:.78rem;
  font-weight:600;
  padding:4px 12px !important;
  border-radius:999px !important;
  margin-top:6px;
}
.obj_galley_link:hover,
.cmp_galley_link:hover{ background:var(--ksr-maroon) !important; }

/* issue cover image */
.issue_cover,
.cmp_cover_image img{
  border:1px solid var(--ksr-line);
  border-radius:var(--ksr-radius-sm);
  box-shadow:var(--ksr-shadow-sm);
}


/* ================================================================
   10. SINGLE ARTICLE PAGE
   ================================================================ */
.page_article .page_title,
.obj_article_details .title{
  font-size:1.7rem !important;
  border-bottom:2px solid var(--ksr-gold);
  padding-bottom:10px;
  margin-bottom:16px;
}

.obj_article_details .sub_item,
.item .value{
  color:var(--ksr-ink);
}

.abstract{
  background:var(--ksr-card);
  border-left:4px solid var(--ksr-gold);
  border-radius:var(--ksr-radius-sm);
  padding:16px 20px;
  margin:1em 0;
}

.item.keywords .value,
.item.subjects .value{
  color:var(--ksr-maroon-dk);
}

.entry_details .item{
  border-bottom:1px dashed var(--ksr-line);
  padding:8px 0;
}


/* ================================================================
   11. SIDEBAR BLOCKS
   ================================================================ */
.pkp_block,
.pkp_structure_sidebar .pkp_block{
  background:var(--ksr-card) !important;
  border:1px solid var(--ksr-line) !important;
  border-radius:var(--ksr-radius) !important;
  box-shadow:var(--ksr-shadow-sm);
  padding:16px 18px !important;
  margin-bottom:18px !important;
}

.pkp_block .title,
.pkp_block h2{
  font-family:var(--ksr-font-head) !important;
  color:var(--ksr-navy) !important;
  font-size:1rem !important;
  border-bottom:2px solid var(--ksr-gold) !important;
  padding-bottom:8px;
  margin-bottom:10px;
}

.pkp_block ul{ list-style:none; margin:0; padding:0; }
.pkp_block li{ margin-bottom:8px; font-size:.92rem; }


/* ================================================================
   11.1 POLICY SIDEBAR NAVIGATION
   ------------------------------------------------------------
   For a "Custom HTML" sidebar block (via the Custom Block Manager
   plugin) that lists links to About / Aim & Scope / Plagiarism /
   Repository / Open Access. Sits inside the existing .pkp_block
   wrapper (section 11) so it inherits the card, border, and title
   styling automatically — this section only styles the link list
   itself. Pair with the HTML in ksr-policy-sidebar.html.
   ================================================================ */
.ksr-sidebar-policies{
  list-style:none;
  margin:0 !important;
  padding:0 !important;
}

.ksr-sidebar-policies li{
  margin-bottom:0 !important;
  border-bottom:1px solid var(--ksr-line);
}
.ksr-sidebar-policies li:last-child{ border-bottom:none; }

.ksr-sidebar-policies a{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 4px;
  font-size:.92rem;
  color:var(--ksr-navy) !important;
  text-decoration:none !important;
  border-left:3px solid transparent;
  transition:background .12s ease, border-color .12s ease, padding-left .12s ease;
}

.ksr-sidebar-policies a:hover,
.ksr-sidebar-policies a:focus{
  background:var(--ksr-paper);
  border-left-color:var(--ksr-gold);
  padding-left:10px;
  color:var(--ksr-maroon) !important;
}

.ksr-sidebar-policies a.is-current{
  border-left-color:var(--ksr-maroon);
  color:var(--ksr-maroon-dk) !important;
  font-weight:600;
  background:var(--ksr-paper);
}

/* small bullet/marker before each link, using the gold accent */
.ksr-sidebar-policies a::before{
  content:"";
  flex:0 0 auto;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--ksr-gold);
}

/* optional caption above the list, e.g. "Journal Policies" */
.ksr-sidebar-policies-caption{
  font-family:var(--ksr-font-head);
  color:var(--ksr-navy);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin:0 0 8px 0;
}


/* ================================================================
   12. BUTTONS & FORM ELEMENTS
   ================================================================ */
.pkp_button,
.cmp_button,
button.pkp_button,
input[type="submit"]{
  background:var(--ksr-maroon) !important;
  border:1px solid var(--ksr-maroon-dk) !important;
  color:#ffffff !important;
  border-radius:6px !important;
  padding:8px 16px !important;
  font-weight:600;
  cursor:pointer;
}
.pkp_button:hover,
.cmp_button:hover{ background:var(--ksr-maroon-dk) !important; }

.pkp_button.pkp_button_primary,
.cmp_button.is-primary{
  background:var(--ksr-navy) !important;
  border-color:var(--ksr-navy-deep) !important;
}
.pkp_button.pkp_button_primary:hover{ background:var(--ksr-navy-deep) !important; }

/* generic form fields (submission forms, registration, etc.) */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], textarea, select{
  border:1px solid var(--ksr-line) !important;
  border-radius:var(--ksr-radius-sm) !important;
  padding:8px 10px !important;
  font-family:var(--ksr-font-body) !important;
  color:var(--ksr-ink) !important;
  background:#fff !important;
}
input:focus, textarea:focus, select:focus{
  outline:none !important;
  border-color:var(--ksr-gold) !important;
  box-shadow:0 0 0 3px rgba(200,162,74,.25) !important;
}

label{ color:var(--ksr-navy); font-weight:600; }


/* ================================================================
   13. TABLES
   ================================================================ */
table.ksr-table,
.pkp_form table,
table{
  width:100%;
  border-collapse:collapse;
  font-size:.92rem;
  margin-bottom:1em;
}
table th, table td{
  border:1px solid var(--ksr-line) !important;
  padding:8px 10px !important;
  text-align:left;
  vertical-align:top;
}
table th{
  background:var(--ksr-paper) !important;
  color:var(--ksr-navy) !important;
  font-family:var(--ksr-font-head) !important;
}


/* ================================================================
   14. NOTICES, ALERTS & ANNOUNCEMENTS
   ================================================================ */
.pkp_notification,
.app_announcement,
.obj_announcement_summary{
  border-radius:var(--ksr-radius-sm);
  padding:12px 16px;
  margin-bottom:14px;
  border-left:4px solid var(--ksr-info);
  background:var(--ksr-info-bg);
  color:var(--ksr-info);
}
.pkp_notification.is_warning{ border-color:var(--ksr-warning); background:var(--ksr-warning-bg); color:var(--ksr-warning); }
.pkp_notification.is_error{   border-color:var(--ksr-danger);  background:var(--ksr-danger-bg);  color:var(--ksr-danger); }
.pkp_notification.is_success{ border-color:var(--ksr-success); background:var(--ksr-success-bg); color:var(--ksr-success); }

.ksr-policy__note{
  background:var(--ksr-warning-bg);
  border-left:4px solid var(--ksr-gold);
  padding:10px 14px;
  font-size:.88rem;
  color:var(--ksr-muted);
  border-radius:var(--ksr-radius-sm);
  margin-top:1em;
}


/* ================================================================
   15. PAGINATION
   ================================================================ */
.pkp_pagination,
.pagination{
  display:flex;
  gap:6px;
  margin-top:20px;
}
.pkp_pagination a,
.pkp_pagination span,
.pagination a, .pagination span{
  display:inline-block;
  padding:6px 12px;
  border:1px solid var(--ksr-line);
  border-radius:var(--ksr-radius-sm);
  color:var(--ksr-navy) !important;
}
.pkp_pagination .current,
.pagination .current,
.pagination .active{
  background:var(--ksr-navy) !important;
  color:#fff !important;
  border-color:var(--ksr-navy) !important;
}


/* ================================================================
   16. FOOTER
   ================================================================ */
.pkp_structure_footer{
  background:var(--ksr-navy-deep) !important;
  color:#aeb8bf !important;
  font-size:.85rem;
  padding:22px 0 !important;
}
.pkp_structure_footer a{ color:#cfd8de !important; }
.pkp_structure_footer a:hover{ color:var(--ksr-gold-lt) !important; }
.pkp_structure_footer h3,
.pkp_structure_footer h4{ color:#fff !important; }


/* ================================================================
   17. STATIC / CUSTOM POLICY PAGES
   (About, Aim & Scope, Plagiarism, Repository, Open Access, etc.
    — use these classes in your Static/Custom Page HTML)
   ================================================================ */
.ksr-policy{
  background:var(--ksr-card);
  border:1px solid var(--ksr-line);
  border-radius:var(--ksr-radius);
  box-shadow:var(--ksr-shadow-sm);
  padding:26px 28px;
  margin:0 0 26px 0;
}

.ksr-policy__tag{
  display:inline-block;
  background:var(--ksr-navy);
  color:#ffffff;
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:3px 10px;
  border-radius:var(--ksr-radius-sm);
  margin-bottom:10px;
}

.ksr-policy h2{
  font-size:1.35rem;
  padding-bottom:10px;
  border-bottom:2px solid var(--ksr-gold);
  display:inline-block;
}

.ksr-policy h3{ margin-top:1.2em; margin-bottom:.5em; }
.ksr-policy p{ margin:0 0 1em 0; }
.ksr-policy ul, .ksr-policy ol{ margin:0 0 1em 1.2em; padding:0; }
.ksr-policy li{ margin-bottom:.4em; }
.ksr-policy strong{ color:var(--ksr-navy); }

.ksr-policy__table{ width:100%; border-collapse:collapse; font-size:.92rem; margin-bottom:1em; }
.ksr-policy__table th, .ksr-policy__table td{
  border:1px solid var(--ksr-line); padding:8px 10px; text-align:left; vertical-align:top;
}
.ksr-policy__table th{ background:var(--ksr-paper); color:var(--ksr-navy); }


/* ================================================================
   18. UTILITY CLASSES (optional helpers for custom page content)
   ================================================================ */
.ksr-text-muted{ color:var(--ksr-muted) !important; }
.ksr-text-gold{ color:var(--ksr-gold) !important; }
.ksr-bg-navy{ background:var(--ksr-navy) !important; color:#fff !important; }
.ksr-bg-paper{ background:var(--ksr-paper) !important; }
.ksr-rounded{ border-radius:var(--ksr-radius) !important; }
.ksr-shadow{ box-shadow:var(--ksr-shadow) !important; }
.ksr-center{ text-align:center !important; }
.ksr-mt-0{ margin-top:0 !important; }
.ksr-mb-0{ margin-bottom:0 !important; }


/* ================================================================
   19. PRINT STYLES
   ================================================================ */
@media print{
  .pkp_structure_head, .pkp_structure_nav, .pkp_navigation_user,
  .pkp_structure_sidebar, .pkp_structure_footer, .ksr-custom-banner{
    display:none !important;
  }
  body{ background:#fff !important; color:#000 !important; }
  .ksr-policy, .cmp_article_summary, .pkp_block{
    box-shadow:none !important; border:none !important;
  }
}


/* ================================================================
   20. RESPONSIVE BREAKPOINTS
   ================================================================ */
@media (max-width: 992px){
  .pkp_site_name_wrapper,
  .pkp_site_name,
  .pkp_site_name a{ font-size:1.3rem !important; }
}

@media (max-width: 768px){
  .pkp_site_name_wrapper img,
  .pkp_head_wrapper img{ max-height:56px; }

  .ksr-policy{ padding:20px 18px; }
  .ksr-policy__table{ font-size:.85rem; }

  h1{ font-size:1.6rem; }
  h2{ font-size:1.25rem; }
}

@media (min-width: 992px) {
    .pkp_site_name .is_img img {
        max-height: 243px;
    }
}

/* No custom rules for the nav at any breakpoint below this point —
   OJS's default theme already handles its own mobile/collapsed
   menu layout and toggle; we only ever recolour it in section 5. */