/* ================ JSSP‑inspired custom style ================ */

/* ─── Global resets & body styling ─── */
body, html {
  margin: 0;
  padding: 0;
  background-color: #f8f9fb;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* ─── Header styling ─── */
#header {
  background-color: #002e4f;
  padding: 15px 0;
}
#header .pkp_site_name a, 
#header .pkp_site_name .is_img img {
  color: #ffffff !important;
  text-decoration: none;
}
#header .pkp_site_name .is_img img {
  max-height: 60px;
}
/* Navigation links */
nav a, .pkp_navigation_menu a {
  color: #ffffff !important;
}
nav a:hover, .pkp_navigation_menu a:hover {
  color: #cfd6e0 !important;
}

/* ─── Content area ─── */
.page .pkp_content {
  background-color: #ffffff;
  padding: 2rem;
  margin: 1rem auto;
  max-width: 1100px;
  box-shadow: 0 0 10px rgba(0,0,0,0.04);
  border-radius: 4px;
}

/* Headings */
h1, h2, h3, h4, h5 {
  color: #002e4f;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

/* Paragraphs and text */
p {
  margin-bottom: 1.1em;
  color: #444;
}

/* Links */
a {
  color: #004a99;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ─── Sidebar and block styling ─── */
.sidebar .block {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.sidebar .block h4 {
  color: #002e4f;
  margin-top: 0;
  margin-bottom: .8rem;
}
.sidebar .block ul {
  list-style: disc inside;
  padding-left: 1rem;
}

/* ─── Tables / Data grids ─── */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5em;
}
table th, table td {
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
}
table th {
  background-color: #f2f4f7;
  color: #002e4f;
}

/* ─── Footer styling ─── */
#footer {
  background-color: #001f3a;
  color: #ccc;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}
#footer a {
  color: #ccc;
  text-decoration: none;
}
#footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─── Misc tweaks ─── */
/* Cover wide images in article galleys */
.article .file .obj_galley img,
.article .file .obj_galley iframe {
  max-width: 100%;
  height: auto;
}

/* Reduce excessive margins/padding for readability on mobile */
@media (max-width: 768px) {
  .page .pkp_content {
    padding: 1rem;
    margin: 0.5rem;
  }
  #header, #footer {
    text-align: center;
  }
  nav a, .pkp_navigation_menu a {
    display: inline-block;
    margin: 0 8px;
  }
}
