/* AJES — Classic Theme — Final */

/* ── Header ── */
header, header.header, .header.container-fluid,
div.header.container-fluid, .upper-header, .upper-header.row,
div.upper-header, div.upper-header.row, #user-nav-wraper,
.pkp_structure_head, .pkp_head_wrapper {
  background-color: #1a0505 !important;
  background: #1a0505 !important;
}

/* ── User bar ── */
#navigationUser, #languageNav,
.pkp_navigation_user, ul.pkp_navigation_user {
  background: transparent !important;
}
#navigationUser li a, #languageNav li a, .pkp_navigation_user a {
  color: rgba(255,255,255,0.65) !important;
}
#navigationUser li a:hover, .pkp_navigation_user a:hover {
  color: #D94F4F !important;
}

/* ── Primary navbar ── */
.lower-header, div.lower-header {
  background-color: #D94F4F !important;
}
.lower-header a, div.lower-header a {
  color: #fff !important;
  font-weight: 600 !important;
}
.lower-header a:hover, div.lower-header a:hover {
  background: #A83030 !important;
  color: #fff !important;
}

/* ── Logo ── */
.logo-wrapper, h1.logo-wrapper { background: transparent !important; }
.pkp_site_name img { max-height: 80px !important; width: auto !important; }

/* ── Homepage image ── */
.pkp_structure_main .homepage_image { margin-top: 0 !important; }
.pkp_structure_main .homepage_image img { width: 100% !important; display: block; }

/* ── Links ── */
a { color: #D94F4F !important; }
a:hover { color: #A83030 !important; }

/* ── Buttons ── */
.pkp_button, .btn-primary, input[type="submit"] {
  background: #D94F4F !important;
  border-color: #A83030 !important;
  color: #fff !important;
}

/* ── Footer ── */
footer, .pkp_structure_footer {
  background: #1a0505 !important;
  background-color: #1a0505 !important;
  border-top: 2px solid #D94F4F !important;
}
footer *, .pkp_structure_footer * { color: rgba(255,255,255,0.55) !important; }
footer a, .pkp_structure_footer a { color: rgba(255,255,255,0.65) !important; }
footer a:hover, .pkp_structure_footer a:hover { color: #D94F4F !important; }

/* ── Hide PKP ── */
.pkp_footer_logo, .pkp_brand_footer,
a[href*="pkp.sfu.ca"], a[href*="publicknowledgeproject"],
img[alt*="PKP"], img[alt*="OJS"] { display: none !important; }

/* ── Primary nav dropdown ── */
.pkp_navigation_primary .dropdown-menu,
.lower-header .dropdown-menu {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}
.pkp_navigation_primary .dropdown-menu a,
.pkp_navigation_primary .dropdown-menu li a,
.lower-header .dropdown-menu a,
.lower-header .dropdown-menu li a {
  color: #1a0505 !important;
  background: transparent !important;
}
.pkp_navigation_primary .dropdown-menu a:hover,
.lower-header .dropdown-menu a:hover {
  background: #D94F4F !important;
  color: #fff !important;
}

/* ── Language selector dropdown ── */
#languageNav .dropdown-menu,
.language-toggle .dropdown-menu {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}
#languageNav .dropdown-menu a,
#languageNav .dropdown-menu li a {
  color: #222 !important;
  background: transparent !important;
}
#languageNav .dropdown-menu a:hover {
  background: #D94F4F !important;
  color: #fff !important;
}

/* ── Admin user dropdown ── */
#navigationUser .dropdown-menu,
.pkp_navigation_user .dropdown-menu {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}
#navigationUser .dropdown-menu a,
#navigationUser .dropdown-menu li a,
.pkp_navigation_user .dropdown-menu a,
.pkp_navigation_user .dropdown-menu li a {
  color: #1a1a1a !important;
  background: transparent !important;
}
#navigationUser .dropdown-menu a:hover,
.pkp_navigation_user .dropdown-menu a:hover {
  background: #D94F4F !important;
  color: #fff !important;
}

/* ── Generic dropdown fallback ── */
.dropdown-menu {
  background: #fff !important;
}
.dropdown-menu a, .dropdown-menu li a {
  color: #222 !important;
}
.dropdown-menu a:hover {
  background: #D94F4F !important;
  color: #fff !important;
}

/* ── Page title fix ── */
div.current_page_title,
.current_page_title,
header div.current_page_title,
.container-page .current_page_title,
.container-fluid .current_page_title {
  background: #f9f6f0 !important;
  background-color: #f9f6f0 !important;
  background-image: none !important;
  border-bottom: 3px solid #D94F4F !important;
  padding: 1rem 1.5rem !important;
}
div.current_page_title h1,
div.current_page_title h1.text-center,
.current_page_title h1 {
  color: #1a1a1a !important;
  background: transparent !important;
  background-color: transparent !important;
  text-shadow: none !important;
  font-size: 1.5rem !important;
}

/* ── Inner page content ── */
.pkp_structure_main { background: #fff !important; color: #222 !important; }
.pkp_structure_main p, .pkp_structure_main li,
.pkp_structure_main td { color: #333 !important; }

/* ── Static page links fix ── */
.pkp_structure_main a[style*="background"] {
  color: #fff !important;
}

/* ── Current issue banner (franja oscura "Número actual") ──
   La regla "header" de arriba también pinta de oscuro este <header>,
   así que aquí ponemos el texto en claro. */
section.current_issue > header {
  border-left: 4px solid #D94F4F !important;
  padding: 1rem 1.5rem !important;
}
section.current_issue > header .current_issue_label,
section.current_issue > header p.published,
section.current_issue > header p.published span {
  color: #F2A5A5 !important;
  text-shadow: none !important;
}
section.current_issue > header h2,
section.current_issue > header .current_issue_identification {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* ── No hyphens ── */
* { hyphens: none !important; -webkit-hyphens: none !important; word-break: normal !important; }

/* ── Botón "Enviar un artículo" (bloque del pie) ──
   Las reglas de footer ponen el texto casi blanco; aquí
   el botón recibe fondo rojo AJES para que se lea. */
.pkp_block.block_make_submission a,
.pkp_block.block_make_submission .block_make_submission_link {
  display: inline-block !important;
  background: #D94F4F !important;
  background-color: #D94F4F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.pkp_block.block_make_submission a:hover,
.pkp_block.block_make_submission .block_make_submission_link:hover {
  background: #A83030 !important;
  background-color: #A83030 !important;
  color: #FFFFFF !important;
}

/* ── Avisos en la portada (agregado 2026-10-27) ──
   Izquierda: el aviso más reciente en tarjeta grande.
   Derecha: avisos anteriores en lista, con ícono de calendario.
   En celular se apila todo en una columna.
   Todas las reglas empiezan con .announcements: no afectan al resto. */
.announcements {
  margin: 48px 0 40px;
}
.announcements > h2 {
  font-size: 1.9rem;
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #D94F4F;
  display: inline-block;
}
.announcements .row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: min-content;
  column-gap: 32px;
  row-gap: 0;
  margin: 0;
}
.announcements .row::before,
.announcements .row::after {
  display: none;
}
.announcements article.announcement {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}
.announcements .announcement_title {
  margin: 0;
}
.announcements .announcement_title a:hover {
  color: #D94F4F !important;
}

/* Aviso principal (el más reciente) */
.announcements article.announcement:first-child {
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: start;
  position: relative;
  background: #fff;
  border: 1px solid #ecdede;
  border-left: 5px solid #D94F4F;
  border-radius: 6px;
  padding: 28px 32px;
  box-shadow: 0 2px 10px rgba(60,10,10,.06);
}
.announcements article.announcement:first-child .announcement_title a {
  font-size: 26px !important;
  font-weight: 700;
  line-height: 1.3;
  color: #2a0d0d !important;
}
.announcements article.announcement:first-child .announcement_title a::after {
  content: "Leer más \2192";
  display: block;
  margin-top: 14px;
  font-family: Montserrat, sans-serif;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #D94F4F;
}
html[lang^="en"] .announcements article.announcement:first-child .announcement_title a::after {
  content: "Read more \2192";
}

/* Avisos anteriores (columna derecha) */
.announcements article.announcement:not(:first-child) {
  grid-column: 2;
  padding: 14px 0;
  border-bottom: 1px solid #ecdede;
}
.announcements article.announcement:nth-child(2) {
  padding-top: 4px;
}
.announcements article.announcement:not(:first-child) .announcement_title a {
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.35;
  color: #2a0d0d !important;
}

/* Fecha con ícono de calendario */
.announcements .announcement_date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #D94F4F;
}
.announcements .announcement_date::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D94F4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Celular y tablet: una sola columna */
@media (max-width: 991px) {
  .announcements .row {
    grid-template-columns: 1fr;
  }
  .announcements article.announcement:first-child {
    grid-row: auto;
    margin-bottom: 12px;
  }
  .announcements article.announcement:not(:first-child) {
    grid-column: 1;
  }
}
