/* UHG branding overrides for OJS frontend */
:root {
  --uhg-navy: #1f2f5e;
  --uhg-navy-strong: #172349;
  --uhg-gold: #d4aa2a;
  --uhg-link: #203770;
  --uhg-link-hover: #2f4c95;
  --uhg-soft: #f4f7fc;
}

.pkp_structure_head {
  background: linear-gradient(180deg, #22336a 0%, var(--uhg-navy) 100%);
  border-bottom: 3px solid var(--uhg-gold);
}

.pkp_site_name .is_img {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.pkp_site_name .is_img img {
  max-height: 96px;
  width: auto;
  height: auto;
}

@media (max-width: 991px) {
  .pkp_site_name .is_img img {
    max-height: 66px;
  }
}

.pkp_navigation_primary_row {
  background: linear-gradient(180deg, #f9fbff 0%, #eef3fc 100%);
  border: 1px solid #cfdcf2;
  border-radius: 10px 10px 0 0;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_search_wrapper .pkp_search_desktop {
  color: #1b3369;
  font-weight: 700;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_search_wrapper .pkp_search_desktop:hover,
.pkp_navigation_search_wrapper .pkp_search_desktop:focus {
  color: #142a57;
  background: rgba(27, 51, 105, 0.1);
  border-radius: 6px;
}

.pkp_navigation_primary > li.current > a {
  color: #142a57;
  background: rgba(27, 51, 105, 0.12);
  box-shadow: inset 0 -3px 0 var(--uhg-gold);
}

@media (min-width: 992px) {
  .pkp_navigation_primary_wrapper {
    padding-left: 0.3rem;
    padding-right: 0.5rem;
  }

  .pkp_navigation_primary {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .pkp_navigation_primary > li > a {
    padding: 0.62rem 0.92rem;
    border-radius: 7px;
    line-height: 1.2;
  }

  .pkp_navigation_primary > li:first-child > a {
    margin-left: 0.25rem;
  }

  .pkp_navigation_search_wrapper {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .pkp_navigation_search_wrapper .pkp_search_desktop {
    padding: 0.62rem 0.92rem;
    border-radius: 7px;
  }
}

.pkp_navigation_primary ul ul {
  border: 1px solid #d4dff1;
  box-shadow: 0 12px 26px rgba(23, 35, 73, 0.12);
}

.pkp_navigation_primary ul ul a {
  color: var(--uhg-navy);
}

.pkp_navigation_user > li > a {
  color: #fff;
  font-weight: 600;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
  color: var(--uhg-gold);
}

a {
  color: var(--uhg-link);
}

a:hover,
a:focus {
  color: var(--uhg-link-hover);
}

.pkp_nav_list a:hover,
.pkp_nav_list a:focus,
.pkp_navigation_user a:hover,
.pkp_navigation_user a:focus {
  color: var(--uhg-gold);
}

.cmp_button,
.cmp_form .buttons button,
.page_search .submit button,
.block_make_submission a {
  background: #1f3f83;
  border: 1px solid #163169;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 5px 12px rgba(23, 35, 73, 0.2);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cmp_button:hover,
.cmp_button:focus,
.cmp_form .buttons button:hover,
.cmp_form .buttons button:focus,
.page_search .submit button:hover,
.page_search .submit button:focus,
.block_make_submission a:hover,
.block_make_submission a:focus {
  background: #17336d;
  color: #fff;
  box-shadow: 0 8px 16px rgba(23, 35, 73, 0.28);
}

.cmp_button_wire,
.obj_galley_link {
  border: 1px solid #1b3369;
  border-radius: 8px;
  color: #1b3369;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cmp_button_wire:hover,
.cmp_button_wire:focus,
.obj_galley_link:hover,
.obj_galley_link:focus {
  background: #1f3f83;
  color: #fff;
  border-color: #1a2c59;
  box-shadow: 0 8px 16px rgba(23, 35, 73, 0.2);
}

.pkp_page_index.pkp_op_index .journals > h2 {
  color: var(--uhg-navy);
  border-bottom: 2px solid var(--uhg-gold);
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
}

.pkp_page_index.pkp_op_index .journals > ul > li {
  background: #fff;
  border: 1px solid #dfe6f5;
  border-left: 5px solid var(--uhg-navy);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(22, 35, 73, 0.06);
}

.pkp_page_index.pkp_op_index .journals .body h3 a {
  color: var(--uhg-navy);
}

.pkp_page_index.pkp_op_index .journals .links a {
  display: inline-block;
  padding: 0.38rem 0.9rem;
  border: 1px solid #1f3f83;
  border-radius: 8px;
  background: #fff;
  color: #1f3f83;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pkp_page_index.pkp_op_index .journals .links a:hover,
.pkp_page_index.pkp_op_index .journals .links a:focus {
  background: linear-gradient(135deg, #2f4f93 0%, var(--uhg-navy) 100%);
  color: #fff;
  border-color: #1a2c59;
  box-shadow: 0 8px 16px rgba(23, 35, 73, 0.2);
}

.pkp_page_index.pkp_op_index .journals .links li {
  margin-right: 0.45rem;
}

.pkp_structure_footer_wrapper {
  border-top: 2px solid var(--uhg-gold);
  background: linear-gradient(180deg, #152a63 0%, #0d1d4a 100%);
}

.pkp_structure_footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 0.9rem 1rem 0.9rem;
}

.pkp_footer_content {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #eef3ff;
}

.pkp_footer_content p {
  margin: 0 0 0.45rem 0;
}

.pkp_footer_content p:last-child {
  margin-bottom: 0;
}

.pkp_footer_content strong {
  color: #ffd56b;
}

.pkp_footer_content a {
  color: #bcd5ff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted rgba(188, 213, 255, 0.75);
}

.pkp_footer_content a:hover,
.pkp_footer_content a:focus {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
  .pkp_footer_content {
    font-size: 0.92rem;
    padding: 0.9rem 0.85rem;
  }
}

/* Mobile fixes for OJS navigation/header/content */
@media (max-width: 991px) {
  .pkp_head_wrapper {
    padding-top: 0;
  }

  .pkp_site_name_wrapper {
    height: 58px;
  }

  .pkp_site_nav_toggle {
    width: 58px;
    height: 58px;
  }

  .pkp_site_name {
    left: 58px;
    right: 0;
    padding-left: 0.45rem;
    white-space: normal;
  }

  .pkp_site_name .is_img {
    display: inline-flex;
    align-items: center;
    max-width: calc(100vw - 76px);
    margin-top: 0.32rem;
    margin-bottom: 0.32rem;
  }

  .pkp_site_name .is_img img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    height: auto;
  }

  .pkp_site_nav_menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.7rem 0.7rem 0.9rem 0.7rem;
    background: linear-gradient(180deg, #203263 0%, #162553 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 24px rgba(7, 14, 38, 0.35);
  }

  .pkp_navigation_primary_row {
    border-radius: 8px;
    border-color: #cad8f1;
  }

  .pkp_navigation_primary_wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .pkp_navigation_primary > li {
    display: block;
  }

  .pkp_navigation_primary > li > a {
    display: block;
    padding: 0.62rem 0.72rem;
    border-radius: 7px;
    line-height: 1.25;
  }

  .pkp_navigation_primary > li > ul {
    margin: 0.2rem 0 0.45rem;
    padding: 0.3rem 0 0.2rem 0.65rem;
    border-left: 2px solid rgba(27, 51, 105, 0.22);
    background: transparent;
    box-shadow: none;
  }

  .pkp_navigation_primary > li > ul a {
    display: block;
    padding: 0.42rem 0.6rem;
    border-radius: 6px;
  }

  .pkp_navigation_search_wrapper {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(27, 51, 105, 0.18);
  }

  .pkp_navigation_search_wrapper .pkp_search_desktop {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.62rem 0.72rem;
    border-radius: 7px;
  }

  .pkp_navigation_user_wrapper {
    margin-top: 0.55rem;
  }

  .pkp_navigation_user.pkp_navigation_user {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .pkp_navigation_user > li > a {
    color: #eef3ff;
    padding: 0.36rem 0;
  }

  .pkp_navigation_user > li > a:hover,
  .pkp_navigation_user > li > a:focus {
    color: #ffd56b;
  }

  .pkp_page_index.pkp_op_index .journals > ul > li {
    margin-bottom: 0.8rem;
  }

  .pkp_page_index.pkp_op_index .journals .links li {
    display: block;
    margin: 0 0 0.45rem 0;
  }

  .pkp_page_index.pkp_op_index .journals .links a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .pkp_structure_main img,
  .pkp_structure_main video {
    max-width: 100%;
    height: auto;
  }

  .pkp_structure_main table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}



/* Ajuste editorial premium: logo Arandumis con terminacion suave */
.pkp_site_name .is_img img[src*=arandumis_softedge] {
  max-height: 170px !important;
  width: auto;
  height: auto;
  display: block;
  border-radius: 26px;
  box-shadow: 0 8px 20px rgba(9, 19, 52, 0.24);
  outline: none;
}

@media (max-width: 991px) {
  .pkp_site_name .is_img img[src*=arandumis_softedge] {
    max-height: 82px !important;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(9, 19, 52, 0.20);
  }
}

@supports selector(.pkp_site_name .is_img:has(img)) {
  .pkp_site_name .is_img:has(img[src*=arandumis_softedge]) {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
  }

  .pkp_site_name .is_img:has(img[src*=arandumis_softedge])::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(125% 120% at 50% 50%, transparent 66%, rgba(31, 47, 94, 0.38) 100%);
  }

  @media (max-width: 991px) {
    .pkp_site_name .is_img:has(img[src*=arandumis_softedge]) {
      border-radius: 16px;
    }
  }
}
/* ============================================================
   ARANDUMIS / UHG — Theme v20 (GLOBAL, NO distorsiona logos)
   Reglas seguras que aplican a SITE / EXTENSION / ARANDUMIS
   Reglas Arandumis-only van en headerHead.tpl conditional <style>
   ============================================================ */

/* === LOGO neutro (sin border-radius ni border) === */
.pkp_site_name img,
.pkp_site_name_wrapper .pkp_site_name img,
header.pkp_structure_head .pkp_site_name img {
  max-height: 110px !important;
  max-width: 320px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
@media (max-width: 991px) {
  .pkp_site_name img,
  .pkp_site_name_wrapper .pkp_site_name img,
  header.pkp_structure_head .pkp_site_name img {
    max-height: 75px !important;
    max-width: 220px !important;
  }
}

/* === Buscar inline con menu (todos los journals) === */
.pkp_navigation_primary_wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
}
.pkp_navigation_primary_wrapper > ul.pkp_navigation_primary,
.pkp_navigation_primary_wrapper > #navigationPrimary {
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
.pkp_navigation_primary_wrapper > .pkp_navigation_search_wrapper {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  width: auto !important;
}

/* === Cards de anuncios (todos los journals) === */
.cmp_announcements,
.cmp_announcements.highlight_first {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
}
.cmp_announcements .obj_announcement_summary,
.obj_announcement_summary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
  background: #fff;
  border: 1px solid #e2e6ef;
  border-left: 4px solid #d4aa2a;
  border-radius: 8px;
  padding: 1.5rem 1.7rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(20,35,71,.06), 0 1px 2px rgba(20,35,71,.04);
  transition: box-shadow .18s, transform .18s;
}
.cmp_announcements .obj_announcement_summary_details {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
}
.cmp_announcements .obj_announcement_summary:hover {
  box-shadow: 0 6px 18px rgba(20,35,71,.10);
  transform: translateY(-1px);
}
.cmp_announcements .obj_announcement_summary .title,
.cmp_announcements .obj_announcement_summary h2,
.cmp_announcements .obj_announcement_summary h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
  font-weight: 700;
  color: #142347;
}
.cmp_announcements .obj_announcement_summary .title a,
.cmp_announcements .obj_announcement_summary h2 a,
.cmp_announcements .obj_announcement_summary h3 a {
  color: #142347;
  text-decoration: none;
}
.cmp_announcements .obj_announcement_summary .date {
  color: #6b7384;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .7rem;
  display: inline-block;
}
.cmp_announcements .obj_announcement_summary .summary {
  font-size: .98rem;
  line-height: 1.65;
  margin-bottom: .9rem;
}
.cmp_announcements .obj_announcement_summary .more a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  background: #1f2f5e;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none !important;
}

/* === H1/H2 hierarchy (todos los journals) === */
.pkp_structure_main h1 {
  color: #142347;
  border-bottom: 3px solid #d4aa2a;
  display: inline-block;
  padding-bottom: .6rem;
  margin-bottom: 1.2rem;
}
.pkp_structure_main h2 {
  color: #142347;
  padding-left: .8rem;
  border-left: 4px solid #d4aa2a;
  margin-top: 1.8rem;
}
.pkp_structure_main h3 {
  color: #1f2f5e;
  margin-top: 1.2rem;
}

/* === Sidebar bloques (todos los journals) === */
.pkp_structure_sidebar .pkp_block,
.pkp_sidebar .pkp_block {
  background: #fff;
  border: 1px solid #e2e6ef;
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 1px 3px rgba(20,35,71,.05);
}
.pkp_structure_sidebar .pkp_block .title,
.pkp_sidebar .pkp_block .title,
.pkp_structure_sidebar .pkp_block h2.title,
.pkp_structure_sidebar .pkp_block h3 {
  font-size: .85rem;
  font-weight: 700;
  color: #142347;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #d4aa2a;
}
.pkp_structure_sidebar .pkp_block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pkp_structure_sidebar .pkp_block ul li {
  margin: 0;
  border-bottom: 1px solid #f4f7fc;
}
.pkp_structure_sidebar .pkp_block ul li:last-child {
  border-bottom: none;
}
.pkp_structure_sidebar .pkp_block ul li a {
  display: block;
  padding: .55rem .2rem;
  color: #2a3142;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: padding .15s, color .15s;
}
.pkp_structure_sidebar .pkp_block ul li a:hover {
  color: #1f2f5e;
  padding-left: .5rem;
}

/* === Breadcrumb: ocultar duplicado (todos los journals) === */
.cmp_breadcrumbs li.current,
nav.cmp_breadcrumbs ol li.current,
nav.cmp_breadcrumbs li.current {
  display: none !important;
}
.cmp_breadcrumbs li:nth-last-child(2) .separator,
nav.cmp_breadcrumbs ol li:nth-last-child(2) .separator {
  display: none !important;
}
.pkp_structure_main h1,
nav.cmp_breadcrumbs + h1 {
  display: block !important;
  clear: both !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}
nav.cmp_breadcrumbs {
  display: block !important;
  font-size: .85rem;
  color: #6b7384;
  margin-bottom: 0.5rem !important;
}
nav.cmp_breadcrumbs ol {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
nav.cmp_breadcrumbs li {
  display: inline-flex;
  align-items: center;
  list-style: none;
}
nav.cmp_breadcrumbs a {
  color: #1f2f5e;
  text-decoration: none;
}
nav.cmp_breadcrumbs a:hover { color: #142347; text-decoration: underline; }
nav.cmp_breadcrumbs .separator {
  margin: 0 .4rem;
  color: #b0b8c8;
}

/* === Padding content area (todos) === */
.pkp_structure_content {
  padding-top: 2rem !important;
}

/* === Typography body === */
body { line-height: 1.65; }
.pkp_structure_main p,
.pkp_structure_main li { line-height: 1.7; }

/* === Tables === */
.pkp_structure_main table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}
.pkp_structure_main table th {
  background: #f4f7fc;
  color: #142347;
  font-weight: 700;
  text-align: left;
  padding: .65rem .85rem;
  border-bottom: 2px solid #e2e6ef;
}
.pkp_structure_main table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid #e2e6ef;
}
.pkp_structure_main table tr:hover td { background: #fafbfd; }

::selection { background: #efd16b; color: #142347; }
