/*
 * DELPHI RED — LIGHT HEADER v1.2, 28 October 2026.
 * Target: the Default-family frontend markup observed on Delphi OJS 3.4.0.10.
 * Complete replacement for the earlier delphi-red.css.
 * Upload as Journal Style Sheet; this is NOT an installable theme plugin.
 * Header: white banner panel, subtle pink background, maroon navigation.
 * Back up the existing stylesheet first. Review on a test copy before publishing.
 * All custom content uses the delphi- prefix. No external fonts, scripts or trackers.
 */

:root {
  --delphi-red: #a6192e;
  --delphi-dark: #751324;
  --delphi-soft: #fff3f4;
  --delphi-ink: #252733;
  --delphi-muted: #5c6270;
  --delphi-line: #eadfe2;
  --delphi-paper: #ffffff;
}

body[class*="pkp_page_"] {
  background: #f6f7f9;
  color: var(--delphi-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.pkp_structure_main a,
.pkp_structure_sidebar a { color: var(--delphi-red); }
.pkp_structure_main a:hover,
.pkp_structure_sidebar a:hover { color: var(--delphi-dark); }
.pkp_structure_main a:focus-visible,
.pkp_structure_sidebar a:focus-visible {
  outline: 3px solid var(--delphi-red);
  outline-offset: 4px;
}

.pkp_structure_head {
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 65%, #fff2f4 100%);
  border-bottom: 3px solid var(--delphi-red);
  color: var(--delphi-ink);
}
.pkp_head_wrapper { background: transparent; }
/* The existing banner has dark lettering. An opaque white panel keeps it readable. */
.pkp_site_name .is_img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid var(--delphi-line);
  border-radius: 10px;
  overflow: hidden;
}
.pkp_site_name .is_img img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  background-color: #ffffff;
}
.pkp_site_name a,
.pkp_navigation_user > li > a,
.pkp_site_nav_toggle { color: var(--delphi-red); }
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus,
.pkp_navigation_user > li > a[aria-expanded="true"] {
  background: var(--delphi-soft);
  color: var(--delphi-dark);
}
.pkp_navigation_user .task_count,
.pkp_navigation_user > li > ul a .task_count {
  background: var(--delphi-red);
  color: #ffffff;
}
.pkp_navigation_user > li > ul a:hover .task_count,
.pkp_navigation_user > li > ul a:focus .task_count {
  background: var(--delphi-dark);
  color: #ffffff;
}
.pkp_site_nav_menu { background: #ffffff; }
.pkp_navigation_primary_row {
  background: #ffffff;
  border-top: 1px solid var(--delphi-line);
}
.pkp_navigation_primary > li > a,
.pkp_navigation_primary_wrapper .pkp_search {
  color: var(--delphi-red);
  font-weight: 600;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-expanded="true"],
.pkp_navigation_primary_wrapper .pkp_search:hover,
.pkp_navigation_primary_wrapper .pkp_search:focus {
  background: var(--delphi-soft);
  color: var(--delphi-dark);
}
.pkp_navigation_primary .dropdown-menu,
.pkp_navigation_user .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--delphi-line);
  box-shadow: 0 8px 20px rgba(50, 30, 37, .09);
}
.pkp_navigation_primary .dropdown-menu a,
.pkp_navigation_user .dropdown-menu a { color: var(--delphi-dark); }
.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus,
.pkp_navigation_user .dropdown-menu a:hover,
.pkp_navigation_user .dropdown-menu a:focus {
  background: var(--delphi-soft);
  color: var(--delphi-dark);
}
.pkp_site_nav_toggle {
  background: #ffffff;
  box-shadow: none;
  border-radius: 5px;
}
.pkp_site_nav_toggle > span { border-bottom-color: var(--delphi-red); }
.pkp_site_nav_toggle > span::before,
.pkp_site_nav_toggle > span::after { background: var(--delphi-red); }
.pkp_structure_head a:focus-visible,
.pkp_structure_head button:focus-visible {
  outline: 3px solid var(--delphi-red);
  outline-offset: 3px;
}

.pkp_structure_content {
  background: var(--delphi-paper);
  box-shadow: 0 10px 32px rgba(38, 27, 33, .05);
}
.pkp_structure_main p { line-height: 1.75; }
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 { line-height: 1.3; }
.pkp_structure_main .homepage_about > h2,
.pkp_structure_main .current_issue > h2 {
  color: var(--delphi-dark);
  border-bottom: 2px solid var(--delphi-line);
  padding-bottom: 12px;
}
/* Reduce the oversized logo observed inside Delphi's existing journal summary. */
.page_index_journal .homepage_about > p img {
  width: auto !important;
  max-width: min(100%, 320px) !important;
  height: auto !important;
}

.pkp_structure_sidebar .pkp_block {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--delphi-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(57, 21, 32, .04);
}
.pkp_structure_sidebar .pkp_block .title:not(.pkp_screen_reader) {
  display: block;
  color: var(--delphi-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
/* Temporary styling for the existing inline-styled table. Add real links in HTML. */
#customblock-sidebar .content table { box-shadow: none !important; }
#customblock-sidebar .content table td {
  background: var(--delphi-soft) !important;
  color: var(--delphi-dark);
  text-align: left !important;
  border-bottom: 1px solid #fff !important;
}

.delphi-home, .delphi-menu { overflow-wrap: anywhere; }
.delphi-home *, .delphi-menu * { box-sizing: border-box; }
.delphi-hero {
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 28px;
  background: linear-gradient(125deg, #fff, var(--delphi-soft));
  border: 1px solid var(--delphi-line);
  border-top: 5px solid var(--delphi-red);
  border-radius: 16px;
}
.delphi-home .delphi-eyebrow {
  margin: 0 0 12px;
  color: var(--delphi-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.delphi-home .delphi-hero h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--delphi-dark);
}
.delphi-home .delphi-hero p { font-size: 16px; }
.delphi-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.delphi-home a.delphi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--delphi-red);
  border-radius: 7px;
  background: var(--delphi-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.delphi-home a.delphi-button:hover {
  background: var(--delphi-dark);
  border-color: var(--delphi-dark);
  color: #fff;
}
.delphi-home a.delphi-button-secondary { background: #fff; color: var(--delphi-red); }
.delphi-home .delphi-section-title { color: var(--delphi-dark); margin: 30px 0 16px; }
.delphi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.delphi-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--delphi-line);
  border-radius: 12px;
  background: #fff;
}
.delphi-home .delphi-card h3 { margin: 0 0 8px; color: var(--delphi-dark); font-size: 17px; }
.delphi-home .delphi-card p { margin: 0; color: var(--delphi-muted); font-size: 14px; }
.delphi-menu h3 { margin: 0 0 14px; color: var(--delphi-dark); font-size: 17px; }
.delphi-menu ul { list-style: none; padding: 0; margin: 0; }
.delphi-menu li { margin: 0; padding: 0; border-bottom: 1px solid var(--delphi-line); }
.delphi-menu li:last-child { border-bottom: 0; }
.delphi-menu a {
  display: block;
  padding: 13px 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}
.delphi-menu a:hover { background: var(--delphi-soft); }

.obj_article_summary { padding: 20px 0; border-bottom: 1px solid var(--delphi-line); }
.obj_article_summary .title a { color: var(--delphi-dark); }
.pkp_structure_main .obj_galley_link,
.pkp_structure_sidebar .block_make_submission_link {
  background: var(--delphi-red);
  border-color: var(--delphi-red);
  color: #fff;
  border-radius: 6px;
  text-shadow: none;
}
.pkp_structure_main .obj_galley_link:hover,
.pkp_structure_sidebar .block_make_submission_link:hover {
  background: var(--delphi-dark);
  color: #fff;
}
.pkp_structure_footer_wrapper { background: #f4eaec; border-top: 4px solid var(--delphi-red); }
.pkp_structure_footer a { color: var(--delphi-dark); }

@media (max-width: 767px) {
  .delphi-grid { grid-template-columns: 1fr; }
  .delphi-actions { flex-direction: column; }
  .delphi-home a.delphi-button { width: 100%; }
  .pkp_structure_sidebar .pkp_block { margin-bottom: 14px; }
}
@media print {
  .delphi-hero, .delphi-card { background: #fff; box-shadow: none; }
  .delphi-home a.delphi-button { background: #fff; color: #000; }
}

/* Hide only the automatic homepage About the Journal heading and its underline. */
.pkp_structure_main .page_index_journal .homepage_about > h2 {
  display: none !important;
}
