/*
 * Journal style sheet of QAIRU Journal.
 *
 * This is exactly the file that Settings -> Website -> Appearance -> Advanced -> "Journal style
 * sheet" would upload; ojs/setup/seed-appearance.php installs it without the form. OJS keeps it
 * as public/journals/<id>/styleSheet.css and loads it LAST on every page of this journal
 * (PKPTemplateManager, STYLE_SEQUENCE_LATE), so a rule here beats the theme without the theme
 * being touched.
 *
 * Keep this file short. Every rule here overrides somebody else's product, so every rule needs a
 * written reason.
 */

/*
 * The OJS/PKP logo that the product prints at the bottom of every public page of the journal --
 * lib/pkp/templates/frontend/components/footer.tpl, block .pkp_brand_footer, a picture linking to
 * /about/aboutThisPublishingSystem. The owner asked for it to go: this is the university's
 * journal, and a reader has no use for a link to the platform's own page.
 *
 * Hidden from here instead of patched in the template on purpose. Templates belong to OJS, and
 * the next upgrade of the image would bring the block back silently (that is mine 19 all over
 * again). A setting survives upgrades; a patched template does not.
 *
 * Legally this is allowed. OJS is distributed under the GNU GPL v3, which requires the source and
 * the copyright notices to be kept -- it has no attribution ("badgeware") clause and asks for no
 * logo in the page footer. PKP's own docs describe the footer branding as customisable.
 *
 * Scope: the class exists ONLY on public pages (grep for it inside the image returns exactly one
 * template, under frontend/). Editorial dashboards render a different footer, so nothing
 * disappears from anybody's workspace. setup-appearance.sh checks that this stays true.
 */
.pkp_brand_footer {
	display: none;
}

/*
 * What is left in that strip is our own footer (context setting `pageFooter`, filled from
 * ojs/setup/page-footer.json). The theme gives the block padding and nothing else, so without
 * these two rules its paragraphs would sit glued together.
 */
.pkp_footer_content p {
	margin: 0 0 0.6em;
}

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

/*
 * The header logo (context setting `pageHeaderLogoImage`, the QAIRU wordmark for dark
 * backgrounds, installed by setup-appearance.sh from ojs/setup/brand/). The default theme caps
 * it at 80px on desktop, which makes a 4.3:1 wordmark about 340px wide and taller than the menu
 * row next to it. 44px keeps it in proportion with the navigation. Below 992px the theme puts
 * the logo in a 40px bar beside the menu button; 30px is what fits that bar with the theme's own
 * margins, and max-width keeps it inside the bar at 375px.
 */
.pkp_structure_head .pkp_site_name .is_img img {
	max-height: 30px;
	max-width: 100%;
}

@media (min-width: 992px) {
	.pkp_structure_head .pkp_site_name .is_img img {
		max-height: 44px;
	}
}
