/*
Theme Name: AHSU Journal Restoration
Description: Faithful reconstruction of Animal Husbandry of the Steppe of Ukraine using the journal's recovered May 2023 artwork and OJS styles. Journal content remains editable in WordPress.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ahsu-journal
*/
/* Original styles are retained in assets. These narrow repairs make the historical layout responsive and accessible. */
body { background-image: url('assets/background.jpg'); }
.pkp_structure_head { background-image: url('assets/header.jpg'); }
.obj_article_details .authors .orcid:before { content: url('assets/orcid.svg'); }
.obj_article_details .authors .email, .obj_article_details .authors .country { display: block; }
.obj_article_details .supplementary-files a { display: block; margin: 0 0 8px; }
.obj_article_details .item.doi .label, .obj_issue_toc .pub_id .type { content: normal; }
.scrollup { background-image: url('assets/icon_top.png'); }
img { max-width: 100%; height: auto; }
.pkp_structure_main { min-height: 650px; overflow-wrap: break-word; }
.pkp_structure_main::after, .pkp_structure_main::before { pointer-events: none; }
.pkp_site_name .is_text { max-width: 100%; }
.pkp_nav_list > li { position: relative; }
.pkp_navigation_primary { max-width: calc(100% - 100px); }
.pkp_navigation_primary > li { display: inline-block; }
.pkp_navigation_primary .sub-menu { z-index: 20; }
.pkp_navigation_primary li:focus-within > ul, .pkp_navigation_primary li.ahsu-submenu-open > ul { left: 14px; visibility: visible; opacity: 1; display: block; }
.ahsu-submenu-toggle { color: #fff; background: transparent; border: 0; padding: 10px 6px; margin-left: -12px; cursor: pointer; }
.ahsu-header-search { position: absolute; right: 0; top: 0; padding: 10px 12px; background: #297340; color: #fff; line-height: 20px; }
.ahsu-header-search:hover, .ahsu-header-search:focus { color: #fff; text-decoration: underline; }
.ahsu-header-search svg { vertical-align: -2px; margin-right: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #174d7a; outline-offset: 3px; }
.pkp_structure_head a:focus-visible, .pkp_structure_head button:focus-visible { outline-color: white; }
.cmp_skip_to_content a:focus { left: 10px; top: 10px; clip: auto; background: #fff; color: #174d7a; z-index: 9999; padding: 10px; }
.ahsu-language-links { display: flex; gap: 10px; align-items: center; }
.ahsu-language-links img { display: block; width: 48px; height: 48px; }
.ahsu-issn-icon { float: left; margin-right: 5px; }
.ahsu-historical-caption { display: block; color: #555; font-size: 10px; line-height: 1.3; margin-top: 5px; }
.ahsu-search-form { margin: 20px 0 30px; }
.ahsu-search-form label { display: block; margin-bottom: 8px; font-weight: bold; }
.ahsu-search-fields { display: flex; gap: 8px; }
.ahsu-search-fields input[type=search] { width: 100%; min-width: 0; border: 1px solid #aaa; padding: 8px; background: #fff; }
.ahsu-search-fields button { border: 1px solid #297340; background: #398a52; color: #fff; padding: 8px 16px; cursor: pointer; }
.ahsu-search-summary { padding-bottom: 10px; border-bottom: 1px solid #ddd; }
.ahsu-download { display: inline-block; padding: 4px 0; font-size: 13px; }
.ahsu-pdf-reader { clear: both; margin-top: 30px; }
.ahsu-pdf-reader iframe { width: 100%; height: 780px; border: 1px solid #b6b6b6; background: #f1f1f1; }
.obj_article_details .main_entry { min-width: 0; }
.obj_article_details .row::after { content: ''; display: table; clear: both; }
.obj_article_details .entry_details .item .label { text-transform: none; }
.obj_article_details .entry_details { overflow-wrap: anywhere; }
.obj_article_details .authors .affiliation { display: block; }
.obj_article_details .authors .name-native { display: block; color: #555; font-size: 13px; line-height: 1.5; margin-bottom: 3px; }
.obj_issue_toc .heading { min-height: 100px; }
.page_issue_archive .issues_archive { list-style: none; padding: 0; }
.obj_article_summary .title { font-size: 14px; line-height: 1.5; }
.obj_article_summary .authors { line-height: 1.5; }
.obj_issue_toc .obj_article_summary > .title { display: block; margin-top: 0; margin-bottom: 0; border-bottom: 0; line-height: 20px; }
.obj_article_summary .meta .doi { margin-top: 5px; overflow-wrap: anywhere; }
.obj_article_summary .meta .pages { max-width: 130px; pointer-events: none; }
.obj_issue_summary h2 { margin: 0 0 5px; font-family: 'Noto Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 20px; text-transform: none; }
.obj_issue_summary h2 a { color: #51a567; }
.obj_issue_summary .description, .obj_issue_summary > p { font-size: 13px; line-height: 20px; }
.obj_article_details .abstract > h2, .obj_article_details .references > h2 { margin: 0 0 20px; font-family: 'Noto Sans', sans-serif; font-size: 16px; font-weight: 700; line-height: 20px; color: #47a16d; }
.obj_article_details .cover_image img { display: block; max-width: 100%; height: auto; }
.ahsu-citation-text { line-height: 20px; overflow-wrap: anywhere; }
.pkp_structure_main .ahsu-archive-note, .pkp_structure_main .translation-note, .pkp_structure_main .ahsu-source-note { margin: 12px 0 18px; font-size: 12px; line-height: 18px; font-weight: 400; color: #5f5f5f; text-align: left; }
.page .page_title { overflow-wrap: anywhere; }
.additional_content::after { content: ''; display: table; clear: both; }
.additional_content table { max-width: 100%; }
.navigation.pagination { margin: 30px 0; }
.navigation.pagination .page-numbers { display: inline-block; padding: 5px 10px; border: 1px solid #ddd; }
@media (min-width: 992px) {
 .pkp_structure_main { padding: 0 50px 50px 40px !important; }
}
@media (max-width: 991px) {
 .pkp_structure_main { min-height: 0; }
 .pkp_structure_sidebar { border-top: 1px solid #b6b6b6; display: flex; flex-wrap: wrap; }
 .pkp_structure_sidebar .pkp_block { width: 50%; }
 .pkp_navigation_primary { max-width: calc(100% - 80px); text-align: left; }
 .pkp_navigation_primary > li > a { margin: 0 8px; }
 .pkp_site_name .is_text { padding-left: 10px !important; padding-right: 10px !important; }
 .ahsu-header-search { padding: 10px 8px; }
 .ahsu-header-search svg { display: none; }
}
@media (max-width: 767px) {
 body, .pkp_structure_main p { text-align: left; }
 .pkp_structure_main { padding: 20px 16px; }
 .pkp_site_name .is_text { font-size: 22px; line-height: 1.25; }
 .pkp_navigation_primary { max-width: 100%; padding-right: 0; display: flex; flex-wrap: wrap; }
 .pkp_navigation_primary > li > a { font-size: 12px; padding-top: 9px; padding-bottom: 7px; margin: 0 9px; }
 .pkp_navigation_primary > li:first-child a { margin-left: 9px; }
 .ahsu-header-search { position: static; display: block; text-align: left; padding-left: 9px; font-size: 12px; }
 .ahsu-header-search svg { display: inline-block; }
 .pkp_navigation_primary ul { width: min(280px, 85vw); }
 .pkp_navigation_primary li:hover > ul, .pkp_navigation_primary li:focus-within > ul, .pkp_navigation_primary li.ahsu-submenu-open > ul { left: 0; }
 .ahsu-submenu-toggle { padding: 9px 7px; margin-left: -7px; }
 .pkp_block { padding: 15px 16px 10px !important; }
 .pkp_structure_sidebar .pkp_block { width: 50%; }
 .obj_article_summary > .title, .obj_article_summary .meta { margin-right: 0; padding-right: 0; }
 .obj_article_summary .pages { position: static; margin: 6px 0; }
 .obj_article_details .entry_details { width: 100%; }
 .obj_article_details .entry_details { margin-left: 0; margin-right: 0; }
 .sub_item:last-child ul { column-count: 1; }
 .obj_issue_toc .cover img { max-width: 45%; height: auto; margin-right: 15px; }
 .ahsu-pdf-reader iframe { height: 600px; }
 .pkp_footer_content { padding: 20px 16px; }
 .additional_content table { display: block; overflow-x: auto; }
}
@media (max-width: 420px) {
 .pkp_structure_sidebar .pkp_block { width: 100%; }
 .pkp_structure_sidebar #customblock-FLAGS { width: 100%; }
 .ahsu-search-fields { flex-wrap: wrap; }
 .obj_issue_toc .cover img { float: none; max-width: 100%; margin: 0 0 15px; }
}
@media (max-width: 600px) {
 .page_index_journal .additional_content img[src*="cover-3.png"] { float: none !important; display: block; width: 263px; max-width: 100%; height: auto; margin: 0 auto 20px !important; }
}
