/* "Qurilish va ta'lim" theme: the legacy jurnal.qurilishtalim.uz look on top of the OJS default theme.
   Palette and type as rendered on the old site: blue #0D6EFD (buttons, accents), orange #FDA12B
   (active nav, numbers, hover), headings #182333, muted #8D9297, light bar #F8F9FA, footer #212529. */
:root {
	--qt-blue: #0d6efd;
	--qt-blue-dark: #0a58ca;
	--qt-orange: #fda12b;
	--qt-dark: #182333;
	--qt-text: #212529;
	--qt-muted: #8d9297;
	--qt-light: #f8f9fa;
	--qt-footer: #212529;
	--qt-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--qt-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--qt-wrap: 1200px;
}

body { font-family: var(--qt-body); color: var(--qt-text); background: #fff; }
h1, h2, h3, h4, h5, h6, .pkp_site_name, .page_title { font-family: var(--qt-head); color: var(--qt-dark); }
a { color: var(--qt-blue); }
a:hover, a:focus { color: var(--qt-blue-dark); }

.qt-container { max-width: var(--qt-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.qt-center { text-align: center; }

/* ---------- top bar ---------- */
.qt-topbar { background: var(--qt-light); border-bottom: 1px solid #e9ecef; font-size: 14px; color: var(--qt-muted); }
.qt-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; flex-wrap: wrap; }
.qt-topbar-info { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.qt-topbar-info .fa { color: var(--qt-blue); margin-right: 6px; }
.qt-topbar a { color: var(--qt-muted); text-decoration: none; }
.qt-topbar a:hover { color: var(--qt-orange); }
.qt-langs { display: flex; gap: 4px; }
.qt-lang { display: inline-block; padding: 2px 8px; border-radius: 3px; font-weight: 500; font-size: 13px; }
.qt-lang.is-current { background: var(--qt-blue); color: #fff !important; }

/* ---------- header / navigation: white and sticky ---------- */
.pkp_structure_head { background: #fff !important; border-bottom: 0; box-shadow: 0 2px 8px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 1000; }
.pkp_head_wrapper { max-width: var(--qt-wrap); padding-top: 0; }
.pkp_site_name_wrapper { height: auto; }
.pkp_site_name { padding: 14px 0; }
.pkp_site_name .is_text.qt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--qt-dark); }
.qt-brand-mark { font-size: 40px; color: var(--qt-blue); }
.qt-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.qt-brand-name { font-family: var(--qt-head); font-weight: 700; font-size: 22px; color: var(--qt-blue); letter-spacing: .3px; }
.qt-brand-sub { font-family: var(--qt-head); font-weight: 500; font-size: 13px; color: var(--qt-muted); text-transform: uppercase; letter-spacing: 1px; }
.pkp_site_nav_toggle { color: var(--qt-dark); border-color: #dee2e6; }
.pkp_navigation_primary_row, .pkp_structure_head .pkp_site_nav_menu { background: #fff !important; }
@media (min-width: 992px) { .pkp_structure_head .pkp_site_nav_menu { border-top: 1px solid #eef0f2; } }
.pkp_navigation_primary > li > a,
.pkp_navigation_search_wrapper a { font-family: var(--qt-head); font-weight: 500; text-transform: uppercase; font-size: 14px; color: var(--qt-muted) !important; border-bottom: 0 !important; }
.pkp_navigation_primary > li > a:hover, .pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li.current > a, .pkp_navigation_search_wrapper a:hover { color: var(--qt-orange) !important; text-decoration: none; }
.pkp_navigation_primary [role="menu"] { border-top: 3px solid var(--qt-orange); }
.pkp_navigation_user > li > a { color: var(--qt-muted) !important; }
.pkp_navigation_user > li > a:hover { color: var(--qt-orange) !important; }
/* mobile: the open menu is a panel over the page, so it needs an edge */
@media (max-width: 991px) {
	.pkp_site_nav_menu--isOpen { background: #fff !important; box-shadow: 0 10px 20px rgba(0,0,0,.18); border-bottom: 3px solid var(--qt-blue); padding-bottom: 12px; }
	.pkp_site_nav_menu--isOpen .pkp_navigation_primary > li > a { padding: 10px 0; display: block; border-bottom: 1px solid #f1f3f5 !important; }
}
/* desktop: register / login sit level with the brand, not glued to the top edge */
@media (min-width: 992px) {
	.pkp_structure_head .pkp_navigation_user_wrapper { top: 22px; }
	.pkp_navigation_user > li > a { font-size: 14px; padding: 6px 12px; border: 1px solid #dee2e6; border-radius: 4px; margin-left: 8px; }
}

/* ---------- content pages ---------- */
.pkp_structure_content { max-width: var(--qt-wrap); }
.page_title, .pkp_structure_main h1 { color: var(--qt-dark); }
.cmp_breadcrumbs a { color: var(--qt-muted); }
.obj_galley_link, .cmp_button, .pkp_button, button.submit {
	border-color: var(--qt-blue) !important; color: var(--qt-blue) !important; border-radius: 4px; }
.obj_galley_link:hover, .cmp_button:hover { background: var(--qt-blue) !important; color: #fff !important; }
.obj_galley_link.pdf::before { color: inherit; }
.obj_article_summary .title a { color: var(--qt-dark); font-family: var(--qt-head); font-weight: 500; }
.obj_article_summary .title a:hover { color: var(--qt-orange); }
.section h2, .obj_issue_toc .section > h2 { border-left: 4px solid var(--qt-blue); padding-left: 12px; font-size: 18px; }
.obj_issue_summary .title { color: var(--qt-dark); }
.obj_article_details .main_entry .item .label { color: var(--qt-dark); font-family: var(--qt-head); }

/* full-width home: let the sections run edge to edge */
.pkp_page_index .pkp_structure_content { max-width: none; width: auto; padding: 0; margin: 0; }
.pkp_page_index .pkp_structure_main { width: 100%; padding: 0; margin: 0; float: none; }
/* the default theme sizes every h2/h3 inside the main column; restate ours with more weight */
.pkp_structure_main .qt-home .qt-hero-title { font-size: 52px; line-height: 1.15; font-weight: 700; }
.pkp_structure_main .qt-home .qt-h2 { font-size: 34px; line-height: 1.25; font-weight: 600; }
.pkp_structure_main .qt-home .qt-reqs .qt-h2 { font-size: 24px; line-height: 1.4; }
.pkp_structure_main .qt-home .qt-area h3 { font-size: 21px; }
.pkp_structure_main .qt-home .qt-issue-body h3, .pkp_structure_main .qt-home .qt-person-text h3 { font-size: 17px; }
.pkp_page_index .pkp_structure_main::before, .pkp_page_index .pkp_structure_main::after { display: none; }
.qt-home { font-size: 16px; line-height: 1.65; }

/* ---------- buttons, headings ---------- */
.qt-btn { display: inline-block; padding: 10px 26px; border-radius: 4px; font-family: var(--qt-head); font-weight: 500; text-decoration: none !important; border: 2px solid transparent; transition: background .2s, color .2s; margin: 4px 6px 4px 0; }
.qt-btn-sm { padding: 6px 14px; font-size: 14px; }
.qt-btn-primary { background: var(--qt-blue); color: #fff !important; }
.qt-btn-primary:hover { background: var(--qt-orange); }
.qt-btn-light { background: transparent; border-color: #fff; color: #fff !important; }
.qt-btn-light:hover { background: #fff; color: var(--qt-dark) !important; }
.qt-btn-outline { border-color: var(--qt-blue); color: var(--qt-blue) !important; background: #fff; }
.qt-btn-outline:hover { background: var(--qt-blue); color: #fff !important; }
.qt-section { padding: 64px 0; }
.qt-section.qt-container { padding-left: 20px; padding-right: 20px; }
.qt-eyebrow { color: var(--qt-orange); font-family: var(--qt-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin: 0 0 6px; }
.qt-h2 { font-size: 34px; line-height: 1.25; font-weight: 600; margin: 0 0 24px; }

/* ---------- hero ---------- */
.qt-hero { position: relative; height: 560px; overflow: hidden; background: var(--qt-dark); }
.qt-hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; display: flex; align-items: center; }
.qt-hero-slide.is-active { opacity: 1; z-index: 1; }
.qt-hero-slide::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.qt-hero-caption { position: relative; max-width: var(--qt-wrap); margin: 0 auto; padding: 0 60px; width: 100%; box-sizing: border-box; color: #fff; }
.qt-hero-kicker { color: var(--qt-orange); font-family: var(--qt-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 12px; }
.qt-hero-title { color: #fff; font-size: 52px; line-height: 1.15; font-weight: 700; margin: 0 0 28px; max-width: 820px; }
.qt-hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; }
.qt-hero-nav:hover { background: var(--qt-orange); }
.qt-hero-prev { left: 16px; } .qt-hero-next { right: 16px; }

/* ---------- about ---------- */
.qt-about { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.qt-about-media { position: relative; }
.qt-about-media img { width: 100%; display: block; border-radius: 4px; }
.qt-about-badge { position: absolute; right: -16px; bottom: -16px; background: var(--qt-blue); color: #fff; padding: 22px 28px; font-family: var(--qt-head); text-transform: uppercase; border-left: 6px solid var(--qt-orange); }
.qt-about-badge-big { display: block; font-size: 28px; font-weight: 700; }
.qt-rich p:first-child { margin-top: 0; }

/* ---------- subject areas ---------- */
.qt-areas-wrap { background: var(--qt-light); }
.qt-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.qt-area { position: relative; min-height: 280px; background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; }
.qt-area-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .3s; }
.qt-area:hover .qt-area-overlay { background: rgba(13,110,253,.85); }
.qt-area-num { font-family: var(--qt-head); font-size: 60px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--qt-orange); margin-bottom: 10px; }
.qt-area h3 { color: #fff; font-size: 21px; margin: 0 0 8px; }
.qt-area p { margin: 0; font-size: 14px; color: rgba(255,255,255,.85); }

/* ---------- requirements ---------- */
.qt-reqs { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.qt-reqs-media img { width: 100%; border-radius: 4px; border-left: 6px solid var(--qt-blue); }
.qt-checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.qt-checks li { position: relative; padding-left: 26px; font-family: var(--qt-head); font-weight: 500; color: var(--qt-dark); }
.qt-checks li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; color: var(--qt-orange); }

/* ---------- archive tabs ---------- */
.qt-archive-wrap { background: var(--qt-light); }
.qt-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.qt-tab { border: 2px solid var(--qt-blue); background: #fff; color: var(--qt-blue); padding: 8px 26px; border-radius: 4px; font-family: var(--qt-head); font-weight: 600; cursor: pointer; }
.qt-tab.is-active, .qt-tab:hover { background: var(--qt-blue); color: #fff; }
.qt-year { display: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.qt-year.is-active { display: grid; }
.qt-issue-card { background: #fff; display: flex; gap: 16px; padding: 16px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.06); border-bottom: 3px solid transparent; transition: border-color .2s, transform .2s; }
.qt-issue-card:hover { border-bottom-color: var(--qt-orange); transform: translateY(-3px); }
.qt-issue-cover { flex: 0 0 92px; display: flex; align-items: center; justify-content: center; background: var(--qt-light); }
.qt-issue-cover img { width: 92px; height: auto; display: block; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.qt-issue-cover .fa { font-size: 40px; color: var(--qt-muted); }
.qt-issue-body h3 { font-size: 17px; margin: 0 0 6px; }
.qt-issue-body h3 a { color: var(--qt-dark); text-decoration: none; }
.qt-issue-body h3 a:hover { color: var(--qt-orange); }
.qt-issue-body p { margin: 0 0 10px; color: var(--qt-muted); font-size: 14px; }

/* ---------- board ---------- */
.qt-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 12px 0 28px; }
.qt-person { position: relative; overflow: hidden; border-radius: 4px; background: var(--qt-light); }
.qt-person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.qt-person-text { background: #fff; margin: -48px 20px 20px; position: relative; padding: 18px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.08); border-bottom: 3px solid var(--qt-blue); }
.qt-person-text h3 { font-size: 17px; margin: 0 0 4px; }
.qt-person-text p { margin: 0; color: var(--qt-orange); font-size: 14px; font-weight: 500; }

/* ---------- footer ---------- */
.qt-footer { background: var(--qt-footer); color: #999; margin-top: 0; font-size: 15px; }
.pkp_structure_content + .qt-footer { margin-top: 48px; }
.pkp_page_index .pkp_structure_content + .qt-footer { margin-top: 0; }
.qt-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.qt-footer-title { color: var(--qt-light); font-size: 19px; font-weight: 600; margin: 0 0 18px; }
.qt-footer p { margin: 0 0 10px; }
.qt-footer a { color: #999; text-decoration: none; }
.qt-footer a:hover { color: var(--qt-orange); }
.qt-footer-list { list-style: none; padding: 0; margin: 0; }
.qt-footer-list li { margin-bottom: 10px; }
.qt-footer-list .fa { color: var(--qt-orange); width: 18px; }
.qt-footer-links li::before { content: "\f105"; font-family: FontAwesome; margin-right: 8px; color: var(--qt-orange); }
.qt-footer-search { display: flex; }
.qt-footer-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; border-radius: 4px 0 0 4px; }
.qt-footer-search button { border: 0; background: var(--qt-blue); color: #fff; padding: 0 16px; border-radius: 0 4px 4px 0; cursor: pointer; }
.qt-footer-search button:hover { background: var(--qt-orange); }
.qt-issn { color: var(--qt-light); }
.qt-footer-custom { padding-bottom: 20px; }
.qt-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 14px; }
.qt-footer-bottom .qt-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.qt-about, .qt-reqs { grid-template-columns: 1fr; }
	.qt-areas, .qt-board { grid-template-columns: 1fr 1fr; }
	.qt-footer-grid { grid-template-columns: 1fr 1fr; }
	.qt-hero { height: 440px; }
	.pkp_structure_main .qt-home .qt-hero-title { font-size: 36px; }
	.qt-about-badge { right: 0; bottom: 0; }
}
/* below 992px the default theme absolutely positions the site name, so the header
   collapses to 0 height and the banner slides under the brand: give the header its height back */
@media (max-width: 991px) {
	.pkp_structure_head .pkp_site_name_wrapper { min-height: 72px; }
	.pkp_structure_head .pkp_site_name { position: static; padding: 14px 0 14px 56px; }
	.pkp_structure_head .pkp_site_nav_toggle { top: 16px; left: 8px; background: var(--qt-blue); border-radius: 4px; }
}
@media (max-width: 767px) {
	.pkp_structure_head { position: relative; }
	.qt-hours { display: none; }
	.qt-brand-name { font-size: 17px; }
	.qt-brand-mark { font-size: 30px; }
	.qt-areas, .qt-board, .qt-checks, .qt-footer-grid { grid-template-columns: 1fr; }
	.qt-hero { height: 380px; }
	.qt-hero-caption { padding: 0 24px; }
	.pkp_structure_main .qt-home .qt-hero-title { font-size: 28px; }
	.pkp_structure_main .qt-home .qt-h2 { font-size: 26px; }
	.qt-section { padding: 44px 0; }
	.pkp_navigation_primary > li > a { color: var(--qt-dark) !important; }
}

/* ---------- editorial board (about/editorialMasthead) ---------- */
.qt-mast-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 8px 0 32px; }
.qt-mast-lead-item { background: var(--qt-light); border-top: 3px solid var(--qt-blue); padding: 16px 18px; border-radius: 4px; }
.qt-mast-role { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--qt-orange); margin-bottom: 4px; }
.qt-mast-lead-item strong { font-family: var(--qt-head); font-size: 18px; color: var(--qt-dark); }
.qt-mast-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 32px; }
.qt-mast-section h3 { font-size: 17px; color: var(--qt-blue); border-bottom: 2px solid #e9ecef; padding-bottom: 6px; }
.qt-mast-section ol { padding-left: 22px; margin: 0; }
.qt-mast-section li { margin-bottom: 8px; line-height: 1.4; }
.qt-mast-degree { color: var(--qt-muted); font-size: 14px; }
.qt-mast-inst { color: var(--qt-muted); font-size: 13px; }
.qt-mast-editors { columns: 2; padding-left: 20px; }
.qt-mast-source { margin-top: 24px; font-size: 13px; color: var(--qt-muted); }
@media (max-width: 600px) { .qt-mast-editors { columns: 1; } }

/* ---------- archive: issue cards with covers ---------- */
.page_issue_archive .issues_archive { list-style: none; margin: 24px 0; padding: 0; display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px; }
.page_issue_archive .issues_archive > li { margin: 0; padding: 0; border: 0; }
.qt-arch-card { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 10px;
	overflow: hidden; box-shadow: 0 2px 10px rgba(24,35,51,.08); transition: transform .2s ease, box-shadow .2s ease; }
.qt-arch-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(24,35,51,.16); }
.qt-arch-cover { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--qt-light); overflow: hidden; }
.qt-arch-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.qt-arch-card:hover .qt-arch-cover img { transform: scale(1.04); }
.qt-arch-nocover { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 56px; color: #ced4da; }
.qt-arch-year { position: absolute; top: 12px; left: 12px; background: var(--qt-orange); color: #fff; font-family: var(--qt-head);
	font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 20px; }
.qt-arch-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.qt-arch-card h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.qt-arch-card h2 a { color: var(--qt-dark); text-decoration: none; font-family: var(--qt-head); font-weight: 600; }
.qt-arch-card h2 a:hover { color: var(--qt-blue); }
.qt-arch-card .series, .qt-arch-date { font-size: 13px; color: var(--qt-muted); }
.qt-arch-date .fa { color: var(--qt-blue); margin-right: 4px; }
.qt-arch-open { margin-top: auto; align-self: flex-start; }

/* ---------- issue table of contents: article cards ---------- */
.obj_issue_toc .sections .section > h2, .obj_issue_toc .section > h2 { font-family: var(--qt-head); font-size: 20px; color: var(--qt-dark);
	border-left: 4px solid var(--qt-blue); padding-left: 12px; margin: 36px 0 16px; }
.obj_issue_toc .cmp_article_list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.obj_issue_toc .cmp_article_list > li { margin: 0; padding: 0; border: 0; }
.qt-article-card { position: relative; background: #fff; border: 1px solid #e9ecef; border-left: 4px solid var(--qt-blue);
	border-radius: 10px; padding: 20px 22px 16px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.qt-article-card:hover { box-shadow: 0 10px 26px rgba(24,35,51,.12); transform: translateY(-2px); border-left-color: var(--qt-orange); }
.qt-article-card .title { margin: 0 0 12px; font-size: 18px; line-height: 1.4; padding-right: 90px; }
.qt-article-card .title a { color: var(--qt-dark); font-family: var(--qt-head); font-weight: 600; text-decoration: none; }
.qt-article-card .title a:hover { color: var(--qt-blue); }
.qt-card-authors { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.qt-card-authors li { display: flex; flex-direction: column; max-width: 100%; }
.qt-card-author { font-weight: 500; color: var(--qt-text); font-size: 14.5px; }
.qt-card-author .fa { color: var(--qt-blue); margin-right: 4px; }
.qt-card-aff { font-size: 13px; color: var(--qt-muted); padding-left: 19px; line-height: 1.35; }
.qt-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px dashed #e3e6ea; padding-top: 12px; }
.qt-card-foot .galleys_links { margin: 0; padding: 0; display: flex; gap: 8px; }
.qt-card-foot .galleys_links li { margin: 0; }
.qt-card-foot .obj_galley_link { border-radius: 20px; padding: 4px 14px; font-size: 13px; }
.qt-card-more { font-size: 13.5px; font-weight: 500; color: var(--qt-blue); text-decoration: none; }
.qt-card-more:hover { color: var(--qt-orange); }
.qt-card-pages, .qt-card-date { margin-left: auto; font-size: 13px; color: var(--qt-muted); background: var(--qt-light); padding: 3px 10px; border-radius: 20px; }
.qt-card-pages + .qt-card-date { margin-left: 0; }
.qt-article-card .viewcounter-stats { position: absolute; top: 18px; right: 18px; font-size: 12.5px; color: var(--qt-muted); }
@media (max-width: 600px) {
	.page_issue_archive .issues_archive { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.qt-article-card { padding: 16px 16px 12px; }
	.qt-article-card .title { font-size: 16px; padding-right: 0; }
	.qt-article-card .viewcounter-stats { position: static; display: block; margin-bottom: 8px; }
	.qt-card-pages { margin-left: 0; }
}

/* ---------- layout fixes found in the UI test of 2026-12-01 ---------- */
/* header: brand and menu row are centred like the contact bar above them */
.pkp_head_wrapper { margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.pkp_site_name_wrapper { margin-left: 0; margin-right: 0; width: auto; }
/* inner pages: no sidebar is used, so the main column takes the whole content width
   (the default theme keeps room for one and draws its border lines) */
@media (min-width: 992px) {
	.pkp_structure_content { margin-left: auto; margin-right: auto; padding: 0 20px; box-sizing: border-box; }
	.pkp_structure_main { width: 100%; float: none; margin: 0; padding: 0 0 20px; }
	.pkp_structure_main::before, .pkp_structure_main::after { display: none; }
	.pkp_structure_sidebar { display: none; }
}
/* issue page header: cover beside its details, no tall empty band under it */
.obj_issue_toc > .heading { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 8px; }
.obj_issue_toc > .heading .cover img { max-width: 180px; border-radius: 8px; box-shadow: 0 6px 18px rgba(24,35,51,.15); }
.obj_issue_toc > .heading .published { margin-top: 4px; }
.obj_issue_toc .sections > .section:first-child > h2 { margin-top: 16px; }
.obj_issue_toc .galleys { margin: 16px 0; }
@media (max-width: 600px) {
	.qt-article-card .viewcounter-stats { position: static !important; display: flex !important; gap: 10px; margin: 0 0 8px; }
	.obj_issue_toc > .heading { flex-direction: column; gap: 12px; }
	.obj_issue_toc > .heading .cover img { max-width: 150px; }
}
.qt-mobile-galleys { display: none; }
@media (max-width: 991px) {
	.qt-mobile-galleys { display: flex; gap: 8px; list-style: none; padding: 0; margin: 4px 0 20px; }
	.qt-mobile-galleys .obj_galley_link { border-radius: 20px; padding: 6px 18px; }
}
@media (max-width: 600px) {
	.obj_article_details .viewcounter-title-host { flex-direction: column; align-items: flex-start; gap: 8px; }
	.obj_article_details .page_title { font-size: 21px; line-height: 1.35; }
}
@media (max-width: 600px) {
	.viewcounter-stats--summary { position: static !important; display: flex !important; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; max-width: 100%; }
}
/* issue page: tighter rhythm between the issue header and the first section */
.obj_issue_toc .sections { margin-top: 24px; }
.obj_issue_toc .sections > .section { margin-top: 0; margin-bottom: 0; padding-top: 8px; padding-bottom: 8px; border: 0; }
.obj_issue_toc .viewcounter-count { white-space: nowrap; }
@media (min-width: 992px) { .obj_article_details .qt-mobile-galleys { display: none !important; } }
