/* ==========================================================================
   Journal of Project Science — OJS Journal Style Sheet
   Editorial design system to match the Project Science Institute palette
   --------------------------------------------------------------------------
   Upload this file in OJS via:
   Dashboard > Settings > Website > Appearance > Journal Style Sheet
   This stylesheet is designed to work with OJS 3.x default themes,
   particularly the "Default Manuscript" and "Default" themes.
   ========================================================================== */

/* ==========================================================================
   1. FONTS
   ========================================================================== */

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

/* ==========================================================================
   2. DESIGN TOKENS (PSI palette)
   ========================================================================== */

:root {
  /* Color palette — matched to Project Science Institute */
  --jps-ink: #1B1814;          /* warm espresso black, primary text/dark bg */
  --jps-ink-soft: #2D2820;     /* slightly lighter ink for body text */
  --jps-ink-muted: #6B5F50;    /* muted brown for secondary text */
  --jps-cream: #EDE3D0;        /* warm parchment, body background */
  --jps-cream-soft: #F2E9D7;   /* slightly lighter cream for cards */
  --jps-paper: #F5ECDA;        /* lightest cream for content cards */
  --jps-gold: #B88758;         /* warm copper, primary accent */
  --jps-gold-soft: #C9A077;    /* lighter copper for subtle highlights */
  --jps-rule: #D6C4A8;         /* divider line color */
  --jps-accent: #A04830;       /* warm terracotta for emphasis */

  /* Typography */
  --jps-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --jps-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --jps-measure: 68ch;
  --jps-radius: 2px;
}

/* ==========================================================================
   3. BASE STYLES — body, typography
   ========================================================================== */

body,
.pkp_structure_page {
  font-family: var(--jps-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--jps-ink);
  background: var(--jps-cream);
  font-feature-settings: 'kern', 'liga', 'onum';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.page_title,
.section_title,
.cmp_announcement_title,
.cmp_issue_title {
  font-family: var(--jps-serif);
  font-weight: 500;
  color: var(--jps-ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

h1, .page_title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.7rem;
  margin: 2rem 0 0.8rem;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

h4 { font-size: 1.1rem; font-weight: 600; }

p { max-width: var(--jps-measure); margin-bottom: 1rem; }

a, .pkp_structure_page a {
  color: var(--jps-ink);
  text-decoration: underline;
  text-decoration-color: var(--jps-gold-soft);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
.pkp_structure_page a:hover {
  color: var(--jps-accent);
  text-decoration-color: var(--jps-accent);
}

strong, b { font-weight: 600; color: var(--jps-ink); }
em, i { font-style: italic; }

blockquote {
  font-family: var(--jps-serif);
  font-style: italic;
  font-size: 1.25rem;
  border-left: 2px solid var(--jps-gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin: 1.8rem 0;
  color: var(--jps-ink-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--jps-rule);
  margin: 2.5rem 0;
}

/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */

.pkp_structure_head,
.pkp_site_name_wrapper,
header.pkp_structure_head {
  background: var(--jps-cream);
  border-bottom: 1px solid var(--jps-rule);
  padding: 1.2rem 0;
}

.pkp_site_name {
  font-family: var(--jps-serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--jps-ink);
}

.pkp_site_name a {
  color: var(--jps-ink) !important;
  text-decoration: none !important;
}

/* Logo container */
.pkp_site_name .is_text {
  font-family: var(--jps-serif);
  font-style: italic;
}

/* ==========================================================================
   5. PRIMARY NAVIGATION
   ========================================================================== */

.pkp_navigation_primary_row,
.pkp_navigation_primary,
nav.pkp_navigation_primary {
  background: var(--jps-cream);
  border-bottom: 1px solid var(--jps-rule);
}

.pkp_navigation_primary li a {
  font-family: var(--jps-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jps-ink-soft) !important;
  text-decoration: none !important;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pkp_navigation_primary li a:hover,
.pkp_navigation_primary li.current a {
  color: var(--jps-ink) !important;
  border-bottom-color: var(--jps-accent);
}

/* User-area navigation */
.pkp_navigation_user_wrapper {
  background: var(--jps-cream-soft);
  border-bottom: 1px solid var(--jps-rule);
}

.pkp_navigation_user_wrapper a {
  color: var(--jps-gold) !important;
  font-family: var(--jps-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   6. MAIN CONTENT AREA
   ========================================================================== */

.pkp_structure_main,
.pkp_structure_content,
main.pkp_structure_main {
  background: var(--jps-cream);
  padding: 2rem 0 4rem;
}

.pkp_page_index .pkp_structure_main,
.page_index .pkp_structure_main {
  background: var(--jps-cream);
}

/* Section containers */
.cmp_announcement,
.cmp_issue,
.obj_announcement_summary,
.obj_issue_summary {
  background: var(--jps-paper);
  border: 1px solid var(--jps-rule);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--jps-radius);
}

/* ==========================================================================
   7. EYEBROW / TAG LABELS
   ========================================================================== */

.cmp_announcement_date,
.cmp_issue_meta,
.obj_announcement_summary .date,
.obj_issue_summary .meta,
.section_title_inline {
  font-family: var(--jps-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jps-gold);
}

/* ==========================================================================
   8. BUTTONS
   ========================================================================== */

.pkp_button,
button,
.btn,
input[type="submit"],
a.action,
.cmp_button {
  display: inline-block;
  font-family: var(--jps-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  background: var(--jps-ink);
  color: var(--jps-cream) !important;
  border: 1px solid var(--jps-ink);
  border-radius: var(--jps-radius);
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pkp_button:hover,
button:hover,
.btn:hover,
input[type="submit"]:hover,
a.action:hover {
  background: var(--jps-accent);
  border-color: var(--jps-accent);
  color: var(--jps-cream) !important;
}

.pkp_button_offset,
.btn-secondary {
  background: transparent;
  color: var(--jps-ink) !important;
  border-color: var(--jps-ink);
}

.pkp_button_offset:hover,
.btn-secondary:hover {
  background: var(--jps-ink);
  color: var(--jps-cream) !important;
}

/* ==========================================================================
   9. SIDEBAR BLOCKS
   ========================================================================== */

.pkp_block {
  background: var(--jps-paper);
  border: 1px solid var(--jps-rule);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--jps-radius);
}

.pkp_block .title,
.pkp_block h2 {
  font-family: var(--jps-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jps-gold);
  margin: 0 0 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--jps-rule);
}

.pkp_block li {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   10. ARTICLE / ISSUE LISTINGS
   ========================================================================== */

.obj_article_summary,
.obj_issue_summary {
  border-bottom: 1px solid var(--jps-rule);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.obj_article_summary .title,
.obj_article_summary h3,
.obj_issue_summary .title,
.obj_issue_summary h2 {
  font-family: var(--jps-serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.obj_article_summary .title a,
.obj_issue_summary .title a {
  color: var(--jps-ink) !important;
  text-decoration: none !important;
}

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

.obj_article_summary .authors,
.obj_article_summary .meta,
.obj_issue_summary .meta {
  color: var(--jps-ink-muted);
  font-size: 0.92rem;
  font-style: italic;
}

.obj_article_summary .galleys_links a,
.obj_article_summary .pdf,
.obj_article_summary .html {
  font-family: var(--jps-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jps-gold) !important;
  text-decoration: none !important;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--jps-gold);
  border-radius: var(--jps-radius);
  margin-right: 0.5rem;
}

.obj_article_summary .galleys_links a:hover {
  background: var(--jps-gold);
  color: var(--jps-cream) !important;
}

/* ==========================================================================
   11. ARTICLE PAGE (single article view)
   ========================================================================== */

.obj_article_details .page_title,
.obj_article_details h1 {
  font-family: var(--jps-serif);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.obj_article_details .authors,
.obj_article_details .subtitle {
  font-family: var(--jps-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--jps-ink-soft);
  margin-bottom: 1.5rem;
}

.obj_article_details .item.abstract {
  background: var(--jps-paper);
  border-left: 3px solid var(--jps-gold);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.obj_article_details .item.abstract .label {
  font-family: var(--jps-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jps-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.obj_article_details .item.keywords {
  font-style: italic;
  color: var(--jps-ink-muted);
  margin-bottom: 1.5rem;
}

.obj_article_details .item.references {
  border-top: 1px solid var(--jps-rule);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.obj_article_details .item.references li {
  text-indent: -1.5rem;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   12. ISSUE PAGE
   ========================================================================== */

.obj_issue_toc .section h2 {
  font-family: var(--jps-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jps-gold);
  border-bottom: 1px solid var(--jps-rule);
  padding-bottom: 0.5rem;
  margin: 2.5rem 0 1.2rem;
}

.obj_issue_toc .articles {
  margin-bottom: 2rem;
}

.obj_issue_toc .article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--jps-rule);
}

.obj_issue_toc .article .title {
  font-family: var(--jps-serif);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 0.3rem;
}

.obj_issue_toc .article .authors {
  color: var(--jps-ink-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   13. FORMS
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  font-family: var(--jps-sans);
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  background: var(--jps-paper);
  border: 1px solid var(--jps-rule);
  border-radius: var(--jps-radius);
  color: var(--jps-ink);
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--jps-gold);
  box-shadow: 0 0 0 3px rgba(184, 135, 88, 0.1);
}

label {
  font-family: var(--jps-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jps-ink);
  margin-bottom: 0.3rem;
  display: block;
}

/* ==========================================================================
   14. TABLES
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--jps-rule);
  vertical-align: top;
}

th {
  font-family: var(--jps-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jps-gold);
  border-bottom: 2px solid var(--jps-ink);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.pkp_structure_footer_wrapper,
.pkp_structure_footer,
footer.pkp_structure_footer {
  background: var(--jps-ink);
  color: var(--jps-cream);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.pkp_structure_footer p,
.pkp_structure_footer li,
.pkp_structure_footer a {
  color: var(--jps-cream) !important;
}

.pkp_structure_footer a {
  text-decoration-color: var(--jps-gold-soft);
}

.pkp_structure_footer a:hover {
  color: var(--jps-gold-soft) !important;
}

.pkp_brand_footer {
  background: var(--jps-ink);
  border-top: 1px solid rgba(237, 227, 208, 0.15);
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: var(--jps-gold-soft);
}

.pkp_brand_footer a {
  color: var(--jps-gold-soft) !important;
}

/* ==========================================================================
   16. NULL-RESULTS / EDITORIAL CALLOUTS
   --------------------------------------------------------------------------
   Add class="jps-callout" to any block to apply the editorial callout style.
   ========================================================================== */

.jps-callout {
  background: var(--jps-cream-soft);
  border: 1px solid var(--jps-gold-soft);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  position: relative;
  border-radius: var(--jps-radius);
}

.jps-callout::before {
  content: '§';
  font-family: var(--jps-serif);
  font-size: 2rem;
  color: var(--jps-gold);
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: var(--jps-cream);
  padding: 0 0.5rem;
  line-height: 1;
}

.jps-eyebrow {
  font-family: var(--jps-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jps-gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  body { font-size: 15px; }
  h1, .page_title { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }

  .pkp_block,
  .jps-callout {
    padding: 1.2rem;
  }
}

/* ==========================================================================
   18. PRINT
   ========================================================================== */

@media print {
  .pkp_structure_head,
  .pkp_structure_footer,
  .pkp_navigation_primary,
  .pkp_navigation_user,
  .pkp_block,
  .pkp_button,
  button {
    display: none !important;
  }

  body { background: white; color: black; }
  a { color: black; }
}

/* ==========================================================================
   19. LAYOUT OVERRIDES — centered, full-width logo & footer
   --------------------------------------------------------------------------
   Centers and enlarges the header logo and centers footer content so the
   masthead and footer read as full-width, balanced bands.
   ========================================================================== */

/* Header: center the logo block and enlarge the logo image */
.pkp_head_wrapper {
  text-align: center;
}

.pkp_site_name_wrapper {
  float: none;
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.pkp_site_name,
.pkp_site_name a,
.pkp_site_name .is_img {
  float: none !important;
  display: inline-block;
}

.pkp_site_name img {
  height: 112px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Footer logo (square JPS mark) centered above the footer text */
.pkp_structure_footer .pkp_footer_content img,
.pkp_structure_footer img {
  display: block;
  margin: 0 auto 1rem;
  max-width: 150px;
  height: auto;
}

/* Primary navigation centered beneath the logo */
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {
  text-align: center;
}

.pkp_navigation_primary {
  float: none;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer content centered and full width */
.pkp_structure_footer,
.pkp_structure_footer .pkp_footer_content,
.pkp_brand_footer,
.pkp_brand_footer .pkp_brand_links {
  text-align: center;
}

.pkp_structure_footer p,
.pkp_structure_footer ul {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.pkp_brand_footer ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-left: 0;
}
