/* ========================================================= */
/* Atlantis branding fonts                                   */
/* ========================================================= */

@font-face {
  font-display: swap;
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  src: url('/public/fonts/archivo-black-v23-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400;
  src: url('/public/fonts/red-hat-display-v21-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  src: url('/public/fonts/red-hat-display-v21-latin-700.woff2') format('woff2');
}

/* ========================================================= */
/* Typography                                                 */
/* ========================================================= */

/* Body text */
body,
.pkp_page_content,
.obj_article_summary,
.obj_issue_summary,
.obj_article_details,
.pkp_block,
.pkp_structure_main {
    font-family: 'Red Hat Display', Arial, sans-serif !important;
}

/* Headings and Atlantis branding */
h1, h2, h3, h4, h5, h6,
.pkp_site_name,
.pkp_page_title,
.cmp_breadcrumbs,
.obj_issue_summary .title,
.obj_article_summary .title,
.obj_article_details .page_title {
    font-family: 'Archivo Black', Arial, sans-serif !important;
}

/* Let the header grow if a parent is capping height */
.pkp_site_name,
.pkp_site_name .is_img {
  height: auto !important;
  max-height: none !important;
}

/* Force the logo size with higher specificity and !important */
header.pkp_structure_head .pkp_site_name .is_img img,
.pkp_site_name .is_img img {
  max-height: 348px !important;
  height: auto !important;
  width: auto !important;
  display: inline-block; /* avoids some flex/line-height quirks */
}

/* Optional: reduce extra spacing if the header gets too tall */
header.pkp_structure_head {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Keep it reasonable on phones */
@media (max-width: 576px){
  header.pkp_structure_head .pkp_site_name .is_img img {
    max-height: 160px !important;
  }
}

/* ========================================================= */
/* Atlantis maintenance notice – About > Submissions page     */
/* ========================================================= */

/* Style only the quoted maintenance notice in Author Guidelines */
body.pkp_page_about.pkp_op_submissions .pkp_structure_main blockquote {
  color: #c0392b !important;
  -webkit-text-fill-color: #c0392b !important;
  font-weight: 600 !important;
  border-left: 4px solid #c0392b;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: rgba(192, 57, 43, 0.08);
}

/* Temporary OJS 3.5 workaround:
   Hide misleading lock icon on public full-issue galley links.
   Remove after OJS upgrade if no longer needed. */

.obj_galley_link .fa-lock,
.obj_galley_link .pkpIcon--lock,
.obj_galley_link [class*="lock"] {
    display: none !important;
}

/* Temporary OJS 3.5 workaround:
   Hide misleading lock icon on full issue galley button. */

.obj_issue_toc .galleys .obj_galley_link:before,
.obj_issue_toc .galleys .obj_galley_link:after,
.obj_issue_toc .galleys .obj_galley_link .fa,
.obj_issue_toc .galleys .obj_galley_link .fa-lock,
.obj_issue_toc .galleys .obj_galley_link .pkpIcon,
.obj_issue_toc .galleys .obj_galley_link .pkpIcon--lock {
    display: none !important;
}

/* Temporary OJS 3.5 workaround:
   The Full Issue PDF is public but OJS adds "restricted", causing a misleading lock icon.
   Hide the icon only for the Full Issue galley area. */

.obj_issue_toc .galleys a.obj_galley_link.restricted::before,
.obj_issue_toc .galleys a.obj_galley_link.restricted:before {
    display: none !important;
    content: "" !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-image: none !important;
}

/* Remove extra left space where the lock icon was */
.obj_issue_toc .galleys a.obj_galley_link.restricted {
    padding-left: 1em !important;
    background-image: none !important;
}
/* Temporary OJS 3.5 workaround:
   Full Issue PDF is public, but OJS marks the link as restricted.
   Hide the misleading generated lock/button content and redraw a clean PDF label.
   Scoped only to the Full Issue galley area. */

.obj_issue_toc .galleys a.obj_galley_link.pdf.restricted {
    font-size: 0 !important;
    color: #006798 !important;
    border-color: #006798 !important;
    background-image: none !important;
    background: #fff !important;
    padding: 0.5em 1em !important;
}

/* Hide any generated lock icon before or after the link */
.obj_issue_toc .galleys a.obj_galley_link.pdf.restricted::before,
.obj_issue_toc .galleys a.obj_galley_link.pdf.restricted::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

/* Hide the misleading screen-reader-only subscription notice in this false-positive case */
.obj_issue_toc .galleys a.obj_galley_link.pdf.restricted .pkp_screen_reader {
    display: none !important;
}

/* Redraw the visible button label */
.obj_issue_toc .galleys a.obj_galley_link.pdf.restricted::after {
    display: inline !important;
    content: "PDF" !important;
    font-size: 13px !important;
    line-height: 1 !important;
    color: #006798 !important;
}
