/* =========================================================
   IJJS – OJS 3.5 stylesheet (for the built-in "Default" theme)
   Matches the ijjs.in WordPress design:
   white / near-black / mint (#eaf5f7), Poppins, square
   uppercase buttons, uppercase letter-spaced menu.
   Upload at: Settings > Website > Appearance > Advanced >
   "Journal style sheet"
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ijjs-base: #ffffff;
  --ijjs-contrast: #2f2828;
  --ijjs-primary: #000000;
  --ijjs-secondary: #eaf5f7;
  --ijjs-muted: #6b6363;
  --ijjs-line: #e3dede;
}

/* ---------- Base ---------- */
body,
.pkp_structure_page {
  background: var(--ijjs-base);
  color: var(--ijjs-contrast);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.pkp_structure_main h1,
.pkp_structure_main h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ijjs-contrast);
}
.pkp_structure_main h1 { font-size: 2.4rem; line-height: 1.1; }
.pkp_structure_main h2 { font-size: 1.8rem; line-height: 1.25; }
.pkp_structure_main h3 { font-size: 1.35rem; }

a { color: var(--ijjs-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--ijjs-contrast); text-decoration: none; }

/* ---------- Header ---------- */
.pkp_structure_head {
  background: var(--ijjs-base);
  border-bottom: 1px solid var(--ijjs-line);
}
.pkp_site_name .is_text,
.pkp_site_name a {
  color: var(--ijjs-contrast);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.pkp_site_name a:hover { color: var(--ijjs-primary); }

/* ---------- Primary menu ---------- */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary_row {
  background: var(--ijjs-base);
}
.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a {
  color: var(--ijjs-contrast);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a {
  color: var(--ijjs-primary);
  border-bottom-color: var(--ijjs-primary);
}
.pkp_navigation_primary ul {           /* dropdowns */
  background: var(--ijjs-base);
  border: 1px solid var(--ijjs-contrast);
  border-radius: 0;
}
.pkp_navigation_primary ul a {
  color: var(--ijjs-contrast);
  font-size: 0.85rem;
  text-decoration: none;
}
.pkp_navigation_primary ul a:hover {
  background: var(--ijjs-secondary);
  color: var(--ijjs-primary);
  border-left-color: var(--ijjs-primary);
}

/* Search */
.pkp_navigation_search_wrapper a {
  color: var(--ijjs-contrast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ---------- Buttons (matches WP square, uppercase, black) ---------- */
.cmp_button,
.pkp_button,
button,
input[type="submit"],
.block_make_submission a,
.obj_galley_link,
.cmp_form .buttons button,
.pkp_form .buttons button {
  background: var(--ijjs-primary);
  color: var(--ijjs-base);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  line-height: 1;
}
.cmp_button:hover,
.pkp_button:hover,
button:hover,
input[type="submit"]:hover,
.block_make_submission a:hover,
.obj_galley_link:hover {
  background: var(--ijjs-contrast);
  color: var(--ijjs-base);
}
/* PDF / galley buttons: outline style */
.obj_galley_link {
  background: transparent;
  color: var(--ijjs-primary);
  border: 2px solid currentColor;
}
.obj_galley_link:hover { background: var(--ijjs-primary); color: var(--ijjs-base); }

/* ---------- Sidebar blocks ---------- */
.pkp_structure_sidebar .pkp_block {
  background: var(--ijjs-secondary);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 0;
}
.pkp_block .title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ijjs-contrast);
}
.block_make_submission a { display: block; text-align: center; }

/* ---------- Homepage & issue listings ---------- */
.pkp_page_index .homepage_about,
.pkp_page_index .additional_content {
  background: var(--ijjs-secondary);
  padding: 2rem;
}
.obj_issue_toc .heading,
.obj_issue_summary {
  border-bottom: 1px solid var(--ijjs-line);
  padding-bottom: 1.25rem;
}
.obj_article_summary {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ijjs-line);
}
.obj_article_summary > .title a {
  color: var(--ijjs-contrast);
  font-weight: 500;
  text-decoration: none;
}
.obj_article_summary > .title a:hover { text-decoration: underline; }
.obj_article_summary .authors,
.obj_article_summary .pages {
  color: var(--ijjs-muted);
  font-size: 0.9rem;
}
.cmp_announcements .obj_announcement_summary {
  border-left: 3px solid var(--ijjs-primary);
  padding-left: 1rem;
}
.obj_announcement_summary .date,
.obj_issue_summary .published {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ijjs-muted);
}

/* ---------- Article page ---------- */
.obj_article_details .page_title { font-size: 2rem; line-height: 1.2; }
.obj_article_details .item .label,
.obj_article_details .sub_item .label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ijjs-contrast);
}
.obj_article_details .abstract {
  background: var(--ijjs-secondary);
  padding: 1.5rem;
}

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], select, textarea {
  border: 1px solid var(--ijjs-contrast);
  border-radius: 0;
  font-family: 'Poppins', sans-serif;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--ijjs-primary);
  outline-offset: 1px;
}

/* ---------- Breadcrumbs / pagination ---------- */
.cmp_breadcrumbs { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp_pagination a { text-decoration: none; }

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  background: var(--ijjs-contrast);
  color: var(--ijjs-base);
  border-top: 0;
}
.pkp_structure_footer_wrapper a { color: var(--ijjs-base); }
.pkp_structure_footer_wrapper a:hover { color: var(--ijjs-secondary); }
.pkp_brand_footer { opacity: 0.7; }
.pkp_brand_footer img { filter: invert(1); }

   /* Hide "Profile" and "Login" headings on the Register page */
   .pkp_op_register .identity legend,
   .pkp_op_register .login legend {
     display: none;
}
   /* Login & Register buttons: match the header "Submit Article" button */
   .cmp_form .buttons button {
     background: #04315e;
     color: #ffffff;
     border-radius: 4px;
   }
   .cmp_form .buttons button:hover,
   .cmp_form .buttons button:focus {
     background: #062547;
     color: #ffffff;
   }
