/* IUB Journals child theme: additions on top of the OJS default theme. Colours come from each journal's theme settings. */

/* Visible keyboard focus everywhere (mouse clicks keep the default look).
   Two rings, dark inside and white outside, so focus shows on light pages and on coloured journal headers alike. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #1b1f23;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #ffffff;
}

/* Images uploaded into journal pages never overflow small screens. */
.pkp_structure_main img,
.pkp_structure_sidebar img {
	max-width: 100%;
	height: auto;
}

/* Notice on the login page after the Dec 2026 move (switched in IubThemePlugin::SHOW_LOGIN_NOTICE). */
.iub-login-notice {
	margin: 0 0 1.5em;
	padding: 0.9em 1.1em;
	background: #f6f4ec;
	border-left: 4px solid #c48a1a;
	color: #2a2a2a;
	font-size: 0.95em;
	line-height: 1.55;
	max-width: 42em;
}
.iub-login-notice p {
	margin: 0;
}
.iub-login-notice a {
	color: #0b5d3b;
	font-weight: bold;
	text-decoration: underline;
}

/* Respect the "reduce motion" setting of the reader's device. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
