/* =========================================================
   Northern Reviews (OJS) Professional Navy Theme
   Inspired by classic journal layouts: clean, airy, serious.
   Paste into: Website Settings → Appearance → Advanced → Additional CSS
   ========================================================= */

/* ---------- Design tokens ---------- */
:root{
  --nr-navy: #0f2d4b;
  --nr-navy-2: #163a5c;
  --nr-accent: #0b5cab;

  --nr-text: #111827;
  --nr-muted: #6b7280;

  --nr-bg: #ffffff;
  --nr-surface: #f5f7fa;
  --nr-border: #e5e7eb;

  --nr-radius: 12px;
  --nr-shadow: 0 10px 24px rgba(17, 24, 39, .08);
  --nr-max: 1180px;
}

/* ---------- Base typography ---------- */
html, body{
  background: var(--nr-bg);
  color: var(--nr-text);
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.65;
}

h1, h2, h3, h4{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--nr-text);
  line-height: 1.2;
}

a{
  color: var(--nr-accent);
  text-decoration: none;
}

a:hover, a:focus{
  text-decoration: underline;
  text-underline-offset: 2px;
}

small, .text-muted{
  color: var(--nr-muted);
}

/* ---------- Layout: keep content centered and readable ---------- */
.pkp_structure_main{
  max-width: var(--nr-max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

/* ---------- Header + navigation ---------- */
.pkp_structure_head{
  background: var(--nr-navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.pkp_site_name{
  padding: 1.4rem 0 1rem;
}

.pkp_site_name .is_text{
  color: #fff !important;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .02em;
}

.pkp_navigation_primary_wrapper{
  background: var(--nr-navy-2);
  border-top: 1px solid rgba(255,255,255,.10);
}

.pkp_navigation_primary > li > a{
  color: rgba(255,255,255,.92);
  font-weight: 600;
  padding: .75rem .95rem;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus{
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
}

.pkp_navigation_primary > li.current > a{
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* User nav (top right) */
.pkp_navigation_user > li > a{
  color: rgba(255,255,255,.92);
}

.pkp_navigation_user > li > a:hover{
  color: #fff;
}

/* ---------- Search styling (works for many OJS themes) ---------- */
.pkp_search input[type="search"],
.pkp_search input[type="text"]{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: .5rem .9rem;
  outline: none;
}

.pkp_search input[type="search"]::placeholder,
.pkp_search input[type="text"]::placeholder{
  color: rgba(255,255,255,.70);
}

.pkp_search button,
.pkp_search input[type="submit"]{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.14);
  color: #fff;
  padding: .5rem .9rem;
}

/* ---------- Card system ---------- */
.nr-card,
.pkp_block,
.obj_article_summary,
.obj_issue_summary,
.current_issue{
  background: #fff;
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
}

.pkp_block{
  padding: 1rem 1rem;
  margin-bottom: 1rem;
}

.pkp_block .title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

/* ---------- Homepage polish (index page) ---------- */
.pkp_page_index .page_header{
  display: none; /* removes redundant big title on homepage in many themes */
}

/* Make the homepage sections feel like journal panels */
.pkp_page_index .current_issue{
  padding: 1rem;
}

.pkp_page_index .current_issue h2,
.pkp_page_index .current_issue h3{
  margin-top: 0;
}

/* Subtle section headers like “Latest articles” */
.pkp_page_index h2,
.pkp_page_index h3{
  position: relative;
}

.pkp_page_index h2::after,
.pkp_page_index h3::after{
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: .55rem;
  background: var(--nr-accent);
  border-radius: 999px;
  opacity: .9;
}

/* Article summary cards */
.obj_article_summary{
  padding: 1.05rem 1.05rem;
  margin: 0 0 1rem 0;
}

.obj_article_summary .title{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: .35rem;
}

.obj_article_summary .authors{
  color: var(--nr-muted);
  font-size: .95rem;
  margin-bottom: .4rem;
}

.obj_article_summary .summary{
  color: var(--nr-text);
  font-size: .98rem;
}

/* ---------- Sidebar “metrics box” look ---------- */
.pkp_structure_sidebar .pkp_block{
  text-align: center;
}

.pkp_structure_sidebar .pkp_block p{
  margin: .4rem 0;
}

.pkp_structure_sidebar .pkp_block strong{
  font-size: 1.25rem;
  display: inline-block;
}

/* ---------- Your custom homepage HTML blocks (from earlier) ---------- */
.journal-section-block,
.homepage-block{
  background: #fff;
  border: 1px solid var(--nr-border);
  border-radius: var(--nr-radius);
  box-shadow: var(--nr-shadow);
  padding: 1.15rem 1.15rem;
  margin: 1rem 0;
}

.journal-section-block h3,
.homepage-block h3{
  margin-top: 0;
}

.homepage-block ul{
  padding-left: 1.1rem;
  margin: .6rem 0 0;
}

.scope-tags{
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .6rem;
}

.scope-tags span{
  border: 1px solid var(--nr-border);
  border-radius: 999px;
  padding: .22rem .65rem;
  font-size: .95rem;
  color: var(--nr-text);
  background: var(--nr-surface);
}

/* Optional: a “featured” panel style if you add class="nr-feature" */
.nr-feature{
  background: var(--nr-surface);
  border: 1px solid var(--nr-border);
}

/* ---------- Buttons ---------- */
button,
input[type="submit"],
.pkp_button{
  border-radius: 999px !important;
  border: 1px solid var(--nr-border) !important;
  background: var(--nr-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: .55rem 1rem !important;
}

button:hover,
input[type="submit"]:hover,
.pkp_button:hover{
  filter: brightness(.95);
}

/* ---------- Footer ---------- */
.pkp_structure_footer{
  border-top: 1px solid var(--nr-border);
  background: #fff;
}

.pkp_structure_footer_wrapper{
  max-width: var(--nr-max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  color: var(--nr-muted);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 900px){
  .pkp_structure_main{
    padding: 1.25rem 1rem;
  }
  .pkp_navigation_primary > li > a{
    padding: .65rem .75rem;
  }
  .pkp_structure_sidebar .pkp_block{
    text-align: left;
  }
}
