/* =============================================
   Responsive refinements for the public site.
   Loaded after aleuniversity.css; homepage rules are scoped to its sections,
   footer rules apply site-wide.
   Breakpoints follow Bootstrap 4: 576 / 768 / 992 / 1200.
============================================= */

/* ---------- Page headings ----------
   .mainhead was white everywhere, so headings on light pages (account,
   papers, profile…) were invisible. Dark by default; white only on the
   navy .subalsoheading banner. */
.mainhead{
	font-size:28px;
	line-height:1.25;
	color:#071d44;
	overflow-wrap:break-word;
}
.subalsoheading .mainhead{ color:#fff; }
.subalsoheading{ padding:36px 50px !important; }

/* ---------- Arrow buttons (.slowbutton) ----------
   sb-admin.css reserves 45px on the right for the dark arrow box, but the
   site's .btn padding (aleuniversity.css) loads later and removed it, so the
   box covered the end of labels like "Proceed". */
.btn.slowbutton{
	padding-right:52px;
	overflow:hidden;
}
.btn.slowbutton::after{
	width:38px;
	background:rgba(0, 0, 0, .28);
	border-radius:0 inherit inherit 0;
}
.btn.slowbutton::before{
	top:50%;
	right:0;
	width:38px;
	padding:0;
	text-align:center;
	line-height:1;
	transform:translateY(-50%);
	font-size:14px;
}
.btn.slowbutton:disabled::after,
.btn.slowbutton.disabled::after{ background:rgba(0, 0, 0, .15); }

/* ---------- Paper submission: type cards + publication picker ---------- */
.subtype-options{
	display:grid;
	grid-template-columns:repeat(3, minmax(0, 1fr));
	gap:12px;
	margin-bottom:6px;
}
.subtype-card{
	position:relative;
	display:flex;
	align-items:center;
	gap:12px;
	margin:0;
	padding:14px 16px;
	background:#fff;
	border:2px solid #dfe3ea;
	border-radius:10px;
	cursor:pointer;
	transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.subtype-card:hover{ border-color:#9fb0cc; }
.subtype-card input{
	position:absolute;
	opacity:0;
	pointer-events:none;
}
.subtype-card:focus-within{ box-shadow:0 0 0 3px rgba(7, 29, 68, .2); }
.subtype-icon{
	flex:0 0 44px;
	width:44px;
	height:44px;
	border-radius:50%;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#eef1f6;
	color:#071d44;
	font-size:24px;
	transition:background-color .15s ease, color .15s ease;
}
.subtype-text{ display:flex; flex-direction:column; min-width:0; }
.subtype-title{ font-weight:600; color:#071d44; line-height:1.3; }
.subtype-desc{ font-size:12.5px; color:#6b7280; line-height:1.35; margin-top:2px; }
.subtype-check{
	position:absolute;
	top:8px;
	right:8px;
	width:20px;
	height:20px;
	border-radius:50%;
	background:#071d44;
	color:#fff;
	font-size:13px;
	display:none;
	align-items:center;
	justify-content:center;
}
.subtype-card.is-selected{
	border-color:#071d44;
	background:#f4f7fc;
}
.subtype-card.is-selected .subtype-icon{ background:#071d44; color:#fff; }
.subtype-card.is-selected .subtype-check{ display:flex; }
#submission_type_error label.error{ display:block; margin:4px 0 0; }

.pub-picker{ margin-top:14px; }
.pub-select-btn{
	display:flex;
	align-items:center;
	gap:10px;
	width:100%;
	padding:13px 16px;
	border:2px dashed #ed303e;
	border-radius:10px;
	background:#fff;
	color:#ed303e !important;
	font-weight:600;
	font-size:16px;
	text-decoration:none !important;
	transition:background-color .15s ease;
}
.pub-select-btn:hover{ background:#fff5f6; }
.pub-select-btn i{ font-size:22px; color:#ed303e !important; }
.pub-select-btn i:last-child{ margin-left:auto; }
.pub-selected{
	display:flex;
	align-items:center;
	gap:10px;
	padding:12px 16px;
	border:2px solid #1e8e4e;
	border-radius:10px;
	background:#effaf3;
	color:#0f5132;
	font-size:15px;
	font-weight:600;
}
.pub-selected i{ font-size:24px; color:#1e8e4e; }
.pub-selected span{ min-width:0; overflow-wrap:anywhere; }
.pub-selected .editjrnal{
	margin-left:auto;
	flex:0 0 auto;
	font-size:14px;
	font-weight:600;
	color:#071d44;
	text-decoration:underline;
}
.pub-picker + label.error{ display:block; margin-top:6px; }

/* ---------- Paper submission: steps ---------- */
.submission-steps{ margin:0; padding:0; list-style:none; }
.submission-steps > li{
	position:relative;
	padding:16px 18px 16px 88px;
	margin-bottom:20px;
	background:#fff;
	border:1px solid #dde5f1;
	border-radius:10px;
	box-shadow:3px 4px 17px -9px rgba(0,0,0,.1);
	transition:background-color .2s ease;
}
.submission-steps > li:hover{ background-color:#fffaf2; }
.submission-steps > li > .openbox{ cursor:pointer; }
.submission-steps > li > h5{ margin-bottom:3px; font-size:18px; font-weight:800; }
.submission-steps > li > p{ margin:0; color:#555; }
.submission-steps > li > .count{
	position:absolute;
	left:16px;
	top:12px;
	width:52px;
	height:52px;
	border-radius:50%;
	background-color:#ffb100;
	color:#fff;
	font-size:22px;
	font-weight:800;
	display:flex;
	align-items:center;
	justify-content:center;
}
.submission-steps .form_datas{ margin-top:6px; }
.submission-steps .form_datas:empty{ display:none; }
.submission-steps .custom-file{ min-width:0; }
.submission-steps .custom-file-label{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; padding-right:90px; }
.submission-steps label.error{ display:block; color:#d63939; font-size:13px; margin:4px 0 0; }

/* Arrow buttons keep their size inside flex rows (e.g. next to a file input). */
.btn.slowbutton{ flex-shrink:0; white-space:nowrap; }

/* Footer row of each step: secondary action left, Proceed right. */
.sub-step-footer{
	display:flex;
	justify-content:space-between;
	align-items:center;
	gap:12px;
	flex-wrap:wrap;
	margin-top:16px;
	padding-top:14px;
	border-top:1px solid #edf0f5;
}
.sub-step-footer .btn-link{ padding-left:0; padding-right:0; font-weight:600; color:#071d44; }
.sub-inline-form{
	margin-top:14px;
	padding:16px;
	background:#f8fafc;
	border:1px solid #e3e8ef;
	border-radius:10px;
}
.sub-form-actions{ display:flex; justify-content:flex-end; align-items:center; gap:12px; }

/* Author / reviewer cards */
.person-list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.person-card{
	background:#fff;
	border:1px solid #e3e8ef;
	border-radius:10px;
	padding:12px 14px;
}
.person-role{
	display:inline-block;
	margin-bottom:8px;
	padding:2px 10px;
	border-radius:20px;
	background:#eef1f6;
	color:#4b5563;
	font-size:12px;
	font-weight:700;
	text-transform:uppercase;
	letter-spacing:.03em;
}
.person-role.is-main{ background:#071d44; color:#fff; }
.person-meta{
	display:grid;
	grid-template-columns:repeat(2, minmax(0, 1fr));
	gap:8px 18px;
	margin:0;
}
.person-meta > div{ min-width:0; }
.person-meta > div.is-wide{ grid-column:1 / -1; }
.person-meta dt{ font-size:12px; font-weight:600; color:#6b7280; margin:0; text-transform:uppercase; letter-spacing:.03em; }
.person-meta dd{ margin:0; color:#1f2937; overflow-wrap:anywhere; line-height:1.45; }
.person-actions{
	display:flex;
	flex-wrap:wrap;
	gap:6px 18px;
	margin-top:10px;
	padding-top:8px;
	border-top:1px solid #f1f3f6;
	font-size:13.5px;
}
.person-actions a{ font-weight:600; }
.person-actions a.d-none{ display:none !important; }
.person-actions:not(:has(a:not(.d-none))){ display:none; }

/* Uploads */
.upload-block + .upload-block{ margin-top:18px; }
.upload-heading{ font-weight:700; margin-bottom:8px; }
.upload-row{ display:flex; gap:12px; align-items:stretch; }
.upload-progress{ height:8px; margin-top:10px; border-radius:4px; background:#e9edf3; }
.upload-progress .progress-bar{ background:#1e8e4e; width:0; transition:width .2s ease; }
.upload-block .error{ margin-top:8px; font-size:14px; }
.file-card{
	display:flex;
	align-items:center;
	gap:12px;
	margin-top:10px;
	padding:12px 14px;
	background:#effaf3;
	border:1px solid #bfe3cd;
	border-radius:10px;
}
.file-card-icon{ font-size:30px; color:#1e8e4e; }
.file-card-body{ min-width:0; flex:1; }
.file-card-label{ font-size:12px; font-weight:700; color:#0f5132; text-transform:uppercase; letter-spacing:.03em; }
.file-card-body a{ overflow-wrap:anywhere; font-weight:600; }
.file-list{ margin-top:10px; padding:4px 14px; background:#fff; border:1px solid #e3e8ef; border-radius:10px; }
.file-row{ display:flex; align-items:center; gap:10px; padding:8px 0; }
.file-row + .file-row{ border-top:1px solid #f1f3f6; }
.file-row > a:first-of-type{ flex:1; min-width:0; overflow-wrap:anywhere; }
.file-list-empty{ padding:8px 0; color:#6b7280; }

/* Reviewers */
.experts-empty{ margin:10px 0 0; }
.experts-progress{ margin-top:8px; }

/* Confirmation */
.confirm-pub{ margin:4px 0 12px; }
.confirm-pub-type{
	display:inline-block;
	padding:2px 10px;
	border-radius:20px;
	background:#071d44;
	color:#fff;
	font-size:12px;
	font-weight:700;
	text-transform:uppercase;
	letter-spacing:.03em;
	margin-bottom:6px;
}
.confirm-table th{ width:26%; font-weight:600; color:#4b5563; background:#f8fafc; vertical-align:top; }
.confirm-table td{ overflow-wrap:anywhere; vertical-align:top; }
.confirm-abstract{ max-height:220px; overflow:auto; }

/* ---------- Home banner ---------- */
.home-banner-video{
	position:absolute;
	inset:0;
	width:100%;
	height:100%;
	object-fit:cover;
	object-position:center bottom;
}
#sj-homebanner .sj-bannercontent h1{
	line-height:1.3;
	overflow-wrap:break-word;
}
#sj-homebanner .sj-languagelogin{
	margin-left:0 !important;
	float:none;
}
#sj-homebanner #searchForm{
	width:100% !important;
	max-width:500px;
}
#sj-homebanner .header-search{
	display:block;
	width:100%;
}
#sj-homebanner .header-search input{
	width:100%;
	min-width:0;
	padding-right:130px;
}
#sj-homebanner .header-search input:focus{
	outline:2px solid #ed303e;
	outline-offset:2px;
}

/* ---------- Info cards ---------- */
.low_banner_block .home-card{
	position:relative;
	height:100%;
}
.low_banner_block .home-card-media{
	overflow:hidden;
	border-radius:6px;
	aspect-ratio:16 / 10;
	background:#eef0f4;
}
.low_banner_block .home-card-media img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
	transition:transform .3s ease;
}
.low_banner_block .home-card:hover .home-card-media img{ transform:scale(1.04); }
.low_banner_block .home-card h3 a{ color:inherit; }
.low_banner_block .home-card h3 a:hover{ color:#ed303e; text-decoration:none; }
.low_banner_block .home-card p{ margin-bottom:0; line-height:1.6; }

/* ---------- Subjects ---------- */
.bg_books .home-subjects{
	display:grid;
	grid-template-columns:repeat(3, minmax(0, 1fr));
	gap:20px 30px;
}
.bg_books .home-subjects a,
.bg_books .home-subjects span{
	display:flex;
	align-items:center;
	min-height:48px;
	background-color:rgba(255, 255, 255, 0.85);
	padding:10px 20px;
	border:1px solid #ccc;
	color:#071d44;
	line-height:1.35;
	transition:background-color .2s ease, color .2s ease, border-color .2s ease;
}
.bg_books .home-subjects a:hover,
.bg_books .home-subjects a:focus{
	background-color:#ed303e;
	border-color:#ed303e;
	color:#fff;
	text-decoration:none;
}

/* ---------- Featured articles ---------- */
.article_boxes .title_abs b a{ overflow-wrap:break-word; }

/* ---------- Partner logos ---------- */
.membership_sol{ z-index:20 !important; }

/* ---------- Footer (all pages) ---------- */
.sj-footer .social-item a{
	display:flex;
	flex-direction:column;
	align-items:center;
	text-decoration:none;
}

/* =============================================
   Large tablets / small laptops (< 1200px)
============================================= */
@media (max-width: 1199.98px){
	.social-row{ gap:30px; }
}

/* =============================================
   Tablets (< 992px)
============================================= */
@media (max-width: 991.98px){
	.low_banner_block{ padding-top:40px !important; padding-bottom:16px !important; }
	.social-row{
		display:grid;
		grid-template-columns:repeat(6, minmax(0, 1fr));
		gap:16px;
		justify-items:center;
	}
	.social-item{ width:auto; }

	.sj-footercolumns{
		display:grid;
		grid-template-columns:repeat(2, minmax(0, 1fr));
		gap:8px 30px;
		padding:30px 0 10px;
	}
	.sj-footercolumns > [class*="col-"]{
		width:auto;
		max-width:none;
		float:none !important;
		padding:0;
	}
}

/* =============================================
   Phones and portrait tablets (< 768px)
============================================= */
@media (max-width: 767.98px){
	.mainhead{ font-size:23px; margin-bottom:14px; }
	.subtype-options{ grid-template-columns:1fr; gap:10px; }

	/* Submission steps: number badge sits above the content instead of in a wide left gutter */
	.submission-steps > li{ padding:14px 14px 16px 66px; }
	.submission-steps > li > .count{ left:12px; top:12px; width:42px; height:42px; font-size:18px; }
	.submission-steps .form_datas{ margin-left:-52px; }
	.person-meta{ grid-template-columns:1fr; }
	.upload-row{ flex-direction:column; }
	.upload-row .btn{ align-self:flex-end; }
	.confirm-table th, .confirm-table td{ display:block; width:100%; }
	.confirm-table th{ border-bottom:0; padding-bottom:4px; }
	.confirm-table td{ padding-top:0; }
	.subtype-card{ padding:12px 14px; }
	.subalsoheading{ padding:26px 20px !important; }

	/* Banner */
	#sj-homebanner .sj-bannercontent{
		padding:40px 0;
		min-height:0;
	}
	#sj-homebanner .sj-bannercontent h1{
		font-size:28px;
		padding-bottom:12px;
	}
	#sj-homebanner .sj-bannercontent p{ font-size:16px; line-height:1.6; }
	#sj-homebanner .bg-bookshell{ display:none; }
	#sj-homebanner::after{
		background:linear-gradient(180deg, rgba(9, 32, 69, .92) 0%, rgba(9, 32, 69, .55) 100%);
	}

	/* Subjects */
	.bg_books .home-subjects{
		grid-template-columns:repeat(2, minmax(0, 1fr));
		gap:12px;
	}
	.bg_books .home-subjects a,
	.bg_books .home-subjects span{
		padding:10px 14px;
		font-size:14px;
	}
	.bg_books .container{
		padding-top:40px !important;
		padding-bottom:180px;
		background-size:contain;
	}

	/* Featured articles stack */
	.article_boxes ul{ flex-direction:column; gap:0; }

	/* Partner logos */
	.membership_sol h3{ margin-bottom:16px; }

	/* Footer */
	.social-row{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:22px 12px; }
	.social-item i{ font-size:30px; }
	.footer-social h3{ margin-bottom:16px !important; }
	.sj-fcol .sj-widgetheading{ padding-bottom:10px; }
	.sj-fcol .sj-widgetheading h3{ font-size:18px; }
	.footer-box ul li a{ font-size:14px; line-height:28px; }
	#sj-footer .sj-footerbottom{ padding:14px 64px 14px 15px; }
	#sj-footer .sj-widgetresources,
	#sj-footer .sj-widgetcontactus{ margin:0 0 14px; }
	.sj-copyrights{ font-size:14px; }

	/* Back-to-top button */
	.sj-btnscrolltotop{
		width:44px;
		height:44px;
		right:16px;
		bottom:16px;
		font-size:26px;
	}
	.sj-btnscrolltotop i{ height:auto; }
}

/* =============================================
   Phones (< 576px)
============================================= */
@media (max-width: 575.98px){
	#sj-homebanner .sj-bannercontent{ padding:32px 0 36px; }
	#sj-homebanner .sj-bannercontent h1{ font-size:25px; }
	#sj-homebanner .header-search input{
		height:48px;
		padding-right:104px;
		font-size:15px;
	}
	#sj-homebanner .header-search button{
		padding:10px 16px;
		letter-spacing:1px;
		font-size:14px;
	}

	/* Cards become compact rows: thumbnail left, text right */
	.low_banner_block{ padding-top:28px !important; padding-bottom:4px !important; }
	.low_banner_block .row > [class*="col-"]{ margin-bottom:18px !important; }
	.low_banner_block .home-card{
		display:grid;
		grid-template-columns:112px minmax(0, 1fr);
		gap:14px;
		align-items:start;
	}
	.low_banner_block .home-card-media{ aspect-ratio:1 / 1; }
	.low_banner_block .home-card h3{ margin-top:2px !important; font-size:15px; }
	.low_banner_block .home-card p{ font-size:13.5px; line-height:1.5; }
	.low_banner_block .home-card:not(:has(.home-card-media)){ display:block; }

	.bg_books .container{ padding-bottom:140px; }

	/* Footer columns: link lists in two columns, About full width */
	.sj-footercolumns{ gap:4px 20px; }
	.sj-footercolumns > [class*="col-"]:last-child{ grid-column:1 / -1; margin-top:8px; }
}

/* Very narrow phones */
@media (max-width: 359.98px){
	.bg_books .home-subjects{ grid-template-columns:1fr; }
	.low_banner_block .home-card{ grid-template-columns:88px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce){
	.low_banner_block .home-card-media img{ transition:none; }
	.low_banner_block .home-card:hover .home-card-media img{ transform:none; }
}
