/* IJEHS theme: layout and colours of the journal's former website */

/* Open Sans, SIL Open Font License 1.1 (fonts/LICENSE-OFL.txt) */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("../fonts/open-sans-latin-ext-wght-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ij-teal: #226575;
	--ij-teal-dark: #1b5260;
	--ij-text: #212529;
	--ij-muted: #6c757d;
	--ij-border: #dee2e6;
	--ij-light: #f8f9fa;
	--ij-badge-type: #4f5a71;
	--ij-badge-subject: #a31d38;
	--ij-pdf: #d0312d;
}

body.ijehs {
	margin: 0;
	background: #fff;
	color: var(--ij-text);
	font-family: "Open Sans", "Noto Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
body.ijehs a { color: var(--ij-teal); text-decoration: none; }
body.ijehs a:hover, body.ijehs a:focus { color: var(--ij-teal-dark); text-decoration: underline; }
body.ijehs h1, body.ijehs h2, body.ijehs h3, body.ijehs h4 { font-family: inherit; color: var(--ij-text); }
.ij-icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; flex: none; }
.ij-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Top bar ---- */
.ij-topbar { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 12px; background: #fff; }
.ij-topbar .ij-publisher { font-size: 16px; }
.ij-user { margin-left: auto; }
.ij-user ul { list-style: none; display: flex; flex-direction: row; gap: 6px; margin: 0; padding: 0; float: none; }
.ij-user ul ul { flex-direction: column; }
.ij-user li { display: block; float: none; }
.ij-user li { position: relative; }
.ij-user a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 4px; background: var(--ij-light); color: var(--ij-teal) !important; font-size: 13px; font-weight: 700; }
.ij-user ul ul { display: none; position: absolute; right: 0; top: 100%; z-index: 30; flex-direction: column; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--ij-border); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.ij-user li:hover > ul, .ij-user li:focus-within > ul { display: flex; }
.ij-user .task_count { margin-left: 4px; padding: 0 6px; border-radius: 8px; background: var(--ij-teal); color: #fff; font-size: 11px; }

/* ---- Brand bar ---- */
.ij-brand { display: flex; justify-content: space-between; align-items: flex-start; min-height: 120px; padding: 16px 12px 0 18px; background: var(--ij-teal); color: #fff; }
.ij-brand a.ij-logo { display: flex; align-items: center; gap: 20px; color: #fff !important; text-decoration: none !important; }
.ij-logo img { display: block; width: 120px; height: auto; }
.ij-logo .ij-sep { width: 2px; height: 38px; background: rgba(255,255,255,.85); }
.ij-logo .ij-title { font-size: 17px; }
.ij-issn { margin-top: 30px; font-size: 17px; white-space: nowrap; }
.ij-menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.6); border-radius: 4px; color: #fff; padding: 6px 10px; font-size: 15px; cursor: pointer; }

/* ---- Page layout ---- */
.ij-layout { display: grid; grid-template-columns: 354px minmax(0, 1fr); gap: 24px; padding: 16px 12px 40px; align-items: start; }
.ij-layout.has-right { grid-template-columns: 354px minmax(0, 1fr) 228px; }
.ij-main { min-width: 0; }

/* ---- Left sidebar ---- */
.ij-search { border: 1px solid var(--ij-border); padding: 24px 8px 10px; margin-bottom: 8px; }
.ij-search form { display: flex; }
.ij-search input[type=search] { flex: 1; min-width: 0; height: 38px; padding: 4px 12px; border: 1px solid #ced4da; border-right: 0; font: inherit; font-size: 16px; }
.ij-search button { width: 46px; border: 1px solid #6c757d; background: #fff; color: #333; cursor: pointer; }
.ij-search .ij-adv { display: inline-block; margin: 8px 4px 0; font-size: 16px; }

.ij-menu { list-style: none; margin: 0 0 40px; padding: 0; display: block !important; }
.ij-menu > li { display: block !important; float: none !important; margin: 0 0 4px; padding: 0; }
.ij-menu li ul { position: static !important; width: auto !important; box-shadow: none !important; left: auto !important; }
.ij-menu > li > a, .ij-menu > li > button {
	display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box;
	min-height: 51px; padding: 10px 20px; border: 0; background: var(--ij-teal); color: #fff !important;
	font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; text-decoration: none !important;
	box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.ij-menu > li > a:hover, .ij-menu > li > button:hover { background: var(--ij-teal-dark); }
.ij-menu .ij-chev { width: 18px; height: 18px; transition: transform .2s; }
.ij-menu li.open > button .ij-chev { transform: rotate(180deg); }
.ij-menu ul { list-style: none; margin: 0; padding: 6px 0; display: none; background: #fff; border: 1px solid var(--ij-border); border-top: 0; }
.ij-menu li.open > ul { display: block; }
.ij-menu ul a { display: block; padding: 6px 20px; color: var(--ij-text) !important; }
.ij-menu ul a:hover { background: var(--ij-light); color: var(--ij-teal) !important; text-decoration: none !important; }

.ij-quick { list-style: none; margin: 0 0 6px; padding: 0; }
.ij-quick a { display: block; padding: 10px 20px; margin-bottom: 4px; background: var(--ij-light); font-weight: 700; }
.ij-volumes details { border: 1px solid var(--ij-border); margin-bottom: 4px; }
.ij-volumes summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; cursor: pointer; list-style: none; color: var(--ij-teal); background: var(--ij-light); }
.ij-volumes summary::-webkit-details-marker { display: none; }
.ij-volumes details[open] summary .ij-chev { transform: rotate(180deg); }
.ij-volumes .ij-chev { width: 16px; height: 16px; color: #555; transition: transform .2s; }
.ij-volumes .ij-issue-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }

/* ---- Right sidebar (homepage) ---- */
.ij-right .ij-cover img { display: block; width: 200px; height: auto; border: 1px solid var(--ij-border); }
.ij-box { margin-top: 16px; border: 1px solid var(--ij-border); }
.ij-box h2 { margin: 0; padding: 8px; font-size: 16px; font-weight: 400; background: var(--ij-light); border-bottom: 1px solid var(--ij-border); }
.ij-box dl { margin: 0; padding: 4px 8px; }
.ij-box dt { margin-top: 10px; font-weight: 700; }
.ij-box dd { margin: 2px 0 6px 8px; }
.ij-box dd a { display: block; padding: 2px 0; }
.ij-box .ij-inline { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ij-box .ij-inline dt { margin: 0; }
.ij-box .ij-inline dd { margin: 0; }
.ij-pill { display: inline-block; padding: 1px 8px; border-radius: 4px; background: var(--ij-light); font-size: 12px; font-weight: 700; }
.ij-indexing { list-style: none; margin: 0; padding: 0; }
.ij-indexing li { border-bottom: 1px solid var(--ij-border); padding: 8px; text-align: center; }
.ij-indexing img { max-width: 100%; height: auto; }
.ij-indexing .ij-noimg { display: block; padding: 10px 0; font-weight: 600; }

/* ---- Breadcrumbs: one full-width line above the columns, as on the former website ---- */
.ij-crumbs { padding: 18px 12px 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ij-crumbs .separator { margin: 0 6px; color: var(--ij-muted); }
body.ijehs .ij-main .cmp_breadcrumbs { display: none; }
body.ijehs .cmp_breadcrumbs { margin: 0 0 16px; }
body.ijehs .cmp_breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 16px; }
body.ijehs .cmp_breadcrumbs li { display: inline; }
body.ijehs .cmp_breadcrumbs .separator { margin: 0 6px; color: var(--ij-muted); }

/* ---- Homepage ---- */
.ij-banner img { display: block; width: 100%; height: auto; }
.ij-desc { text-align: justify; margin: 0 0 32px; }
.ij-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ij-border); margin-bottom: 16px; }
.ij-tabs button { padding: 10px 24px; border: 0; border-bottom: 3px solid transparent; background: var(--ij-teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ij-tabs button[aria-selected=true] { border-bottom-color: #111; }
.ij-tabpanel[hidden] { display: none; }

/* ---- Article cards ---- */
.ij-card { margin-bottom: 16px; padding: 14px 15px 16px; background: #f9f9f9; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.ij-badges { display: flex; gap: 10px; margin-bottom: 8px; }
.ij-badge { padding: 2px 8px; color: #fff; font-size: 12px; }
.ij-badge.type { background: var(--ij-badge-type); }
.ij-badge.subject { background: var(--ij-badge-subject); }
body.ijehs .ij-card .ij-card-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: justify; }
.ij-card-title a { color: var(--ij-teal); }
.ij-doi { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.ij-doi-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fcb425; color: #fff; font-size: 8px; font-weight: 700; flex: none; }
.ij-authors { margin: 4px 0; }
.ij-abs { position: relative; }
.ij-abs-text { max-height: 4.6em; overflow: hidden; text-align: justify; }
.ij-abs-text p { display: inline; margin: 0; }
.ij-abs-text p::after { content: " "; }
.ij-abs:not(.open) .ij-abs-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1.6em; height: 1.6em; background: linear-gradient(rgba(249,249,249,0), #f9f9f9); }
.ij-abs.open .ij-abs-text { max-height: none; }
.ij-more { margin: 4px 0 0; padding: 0; border: 0; background: none; color: var(--ij-teal); font: inherit; cursor: pointer; }
.ij-card-links { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ij-border); max-width: 760px; }
.ij-pdf { display: inline-flex; align-items: center; gap: 6px; }
.ij-pdf .ij-icon { color: var(--ij-pdf); width: 18px; height: 18px; }
.ij-size { padding: 1px 8px; border-radius: 4px; background: #fff; font-size: 12px; font-weight: 700; }

/* ---- Issue page ---- */
.ij-issue-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.ij-issue-count { margin-bottom: 12px; }

/* ---- Article page ---- */
.ij-article { display: grid; grid-template-columns: minmax(0, 1fr) 258px; gap: 24px; align-items: start; }
body.ijehs .ij-article h1 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.25; text-align: justify; }
.ij-article .ij-doctype { margin-bottom: 12px; }
.ij-article h2.ij-h { margin: 12px 0 8px 4px; font-size: 16px; font-weight: 700; }
.ij-author-list { margin: 16px 0 8px; }
.ij-author-list .ij-author { display: inline-flex; align-items: baseline; gap: 4px; margin-right: 18px; }
.ij-author-list sup { color: var(--ij-teal); }
.ij-author .ij-icon { width: 13px; height: 13px; color: var(--ij-teal); }
.ij-affs { list-style: none; margin: 0 0 8px; padding: 0; }
.ij-affs li { margin: 4px 0; }
.ij-abstract-box { padding: 16px 16px 16px 18px; border-left: 3px solid var(--ij-border); text-align: justify; }
.ij-abstract-box p { margin: 0; }
.ij-keywords { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 20px 0; }
.ij-subjects { margin: 0 0 20px 8px; }
.ij-article-end { border-bottom: 1px solid #ccc; margin-bottom: 30px; }
.ij-side-cover { display: flex; gap: 20px; padding: 8px; border: 1px solid var(--ij-border); }
.ij-side-cover img { width: 108px; height: auto; display: block; }
.ij-panel { margin-top: 8px; border: 1px solid var(--ij-border); }
.ij-panel > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; color: var(--ij-teal); font-size: 16px; }
.ij-panel > summary::-webkit-details-marker { display: none; }
.ij-panel > summary .ij-chev { margin-left: auto; color: #555; transition: transform .2s; }
.ij-panel[open] > summary { border-bottom: 1px solid var(--ij-border); }
.ij-panel[open] > summary .ij-chev { transform: rotate(180deg); }
.ij-panel .ij-panel-body { padding: 10px 12px; }
.ij-panel .ij-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.ij-panel .ij-row span:last-child { font-weight: 600; }
.ij-panel .ij-share { display: flex; gap: 14px; }
.ij-panel .item.citation { margin: 0; }
.ij-panel .item.citation .label, .ij-panel .sub_item .label { display: none; }

/* ---- Footer ---- */
.ij-footer { background: var(--ij-teal); color: #fff; padding: 20px 12px 6px; }
.ij-footer a { color: #fff !important; }
.ij-footer-grid { display: grid; grid-template-columns: 354px 1fr 1fr 1fr; gap: 24px; }
.ij-footer ul { list-style: none; margin: 0; padding: 0 0 0 16px; }
.ij-footer ul li { margin-bottom: 6px; }
.ij-footer h2 { margin: 0 0 6px; color: #fff !important; font-size: 20px; font-weight: 600; }
.ij-footer .ij-news-date { font-size: 13px; }
.ij-footer .ij-license img { display: block; margin-bottom: 6px; }
.ij-footer .ij-license p { margin: 0; }
.ij-footer .ij-register { display: inline-block; margin: 10px 0; padding: 7px 16px; border: 1px solid #fff; border-radius: 4px; }
.ij-footer .ij-social { display: flex; gap: 22px; margin-top: 10px; }
.ij-footer .ij-social .ij-icon { width: 32px; height: 32px; }
.ij-copy { margin-top: 18px; font-size: 16px; }

/* ---- Pages from OJS (about, search, login...) keep OJS's own content styles ---- */
body.ijehs .page { max-width: none; }
body.ijehs .page h1 { font-size: 24px; }
body.ijehs .cmp_button, body.ijehs button.submit, body.ijehs .pkp_button_primary, body.ijehs .cmp_form .buttons button, body.ijehs .page_search .submit button {
	background: var(--ij-teal); border: 1px solid var(--ij-teal-dark); color: #fff !important; padding: 6px 18px; border-radius: 3px; font-weight: 600; box-shadow: none;
}
body.ijehs .cmp_button:hover, body.ijehs button.submit:hover, body.ijehs .cmp_form .buttons button:hover { background: var(--ij-teal-dark); color: #fff !important; }

/* ---- Small screens ---- */
@media (max-width: 1199px) {
	.ij-layout, .ij-layout.has-right { grid-template-columns: 300px minmax(0, 1fr); }
	.ij-layout.has-right .ij-right { grid-column: 2; }
	.ij-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
	.ij-layout, .ij-layout.has-right { grid-template-columns: minmax(0, 1fr); }
	.ij-layout.has-right .ij-right { grid-column: 1; }
	.ij-left { display: none; }
	.ij-left.open { display: block; }
	.ij-menu-toggle { display: inline-block; }
	.ij-issn { margin-top: 0; }
	.ij-brand { flex-wrap: wrap; gap: 10px; min-height: 0; padding-bottom: 14px; }
	.ij-article { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575px) {
	.ij-logo .ij-title { font-size: 14px; }
	.ij-logo img { width: 90px; }
	.ij-topbar .ij-publisher { font-size: 13px; }
	.ij-footer-grid { grid-template-columns: 1fr; }
	.ij-tabs button { flex: 1 1 auto; padding: 8px 12px; }
}

/* Share icons on a light panel: teal shapes with white details */
.ij-share a { color: var(--ij-teal); }
.ij-share .ij-icon { width: 26px; height: 26px; }
.ij-share .ij-icon [fill="#226575"] { fill: #fff; }
.ij-share .ij-icon [stroke="#226575"] { stroke: #fff; }
.ij-panel .citation_formats_button, .ij-panel .citation_formats_list a { font-size: 14px; }

/* Long links (DOIs, URLs) wrap instead of widening the page on phones */
.ij-doi a, .ij-card-title a, .ij-affs li, .ij-main a { overflow-wrap: anywhere; min-width: 0; }
html, body.ijehs { overflow-x: hidden; }

/* Logged-in user links (former website: name badge, My Home, Logout) */
.ij-user ul.ij-user-in { flex-direction: row; align-items: center; gap: 10px; }
.ij-user .ij-uname { display: inline-block; padding: 2px 14px; border-radius: 4px; background: var(--ij-light); font-size: 12px; font-weight: 700; color: var(--ij-text); }
.ij-user ul.ij-user-in a { background: none; font-size: 15px; font-weight: 400; padding: 3px 8px; }

/* Login page: message and "Login with Google / ORCID" (IJEHS Panel) */
.pkp_page_login .ij-alert-danger { margin: 0 0 14px; padding: 10px 14px; border: 1px solid #f1aeb5; border-radius: 4px; background: #f8d7da; color: #58151c; }
.ij-oauth-buttons { margin: 0 0 16px; }
.ij-oauth { display: inline-block; margin: 0 8px 8px 0; padding: 7px 16px; border: 1px solid #ced4da; border-radius: 4px; background: #fff; color: #333 !important; font-weight: 600; text-decoration: none !important; }
.ij-oauth-orcid { border-color: #a6ce39; }

/* Browse pages: By Author, By Subject, Articles List, Author / Keyword Index */
.ij-browse .ij-section-title { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; font-size: 18px; font-weight: 600; color: var(--ij-teal); }
.ij-browse .ij-section-title::after { content: ""; flex: 1; border-top: 3px solid var(--ij-teal); }
.ij-browse-filter { width: 100%; max-width: 300px; margin: 0 0 14px; padding: 6px 10px; border: 1px solid var(--ij-border); border-radius: 3px; font: inherit; }
.ij-letter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.ij-letter-block h2 { margin: 6px 0 6px; font-size: 16px; font-weight: 600; }
.ij-letter-block ul { margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; }
.ij-letter-block li { margin: 0 0 6px; line-height: 1.4; }
.ij-letter-block li strong { font-weight: 600; }
.ij-index-name { color: var(--ij-text); margin-right: 4px; }
.ij-info-box { display: inline-block; margin: 0 0 14px; padding: 8px 12px; border-left: 3px solid #0dcaf0; background: #cff4fc; font-size: 13px; }
.ij-subject-tree, .ij-subject-tree ul { margin: 0; padding: 0; list-style: none; max-width: 520px; }
.ij-subject-tree > li { border-bottom: 1px solid var(--ij-border); padding: 6px 0; }
.ij-subject-top { font-weight: 600; }
.ij-square { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 1px solid var(--ij-teal); }
.ij-subject-tree ul li { padding: 5px 0 5px 18px; border-top: 1px solid var(--ij-border); font-size: 13px; }
.ij-filter-label { margin: 0 0 12px; font-size: 13px; }
.ij-count-badge { display: inline-block; padding: 0 8px; border-radius: 8px; background: var(--ij-light); font-weight: 600; }
.ij-issue-line { margin: 2px 0 4px; font-size: 13px; color: var(--ij-text); }
.ij-vol-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; border-bottom: 1px solid var(--ij-border); }
.ij-vol-tabs a { padding: 6px 12px; border-radius: 4px 4px 0 0; background: #6c757d; color: #9fd3df !important; font-size: 13px; text-decoration: none !important; }
.ij-vol-tabs a.active { background: var(--ij-teal); color: #fff !important; }
.ij-az { margin: 0 0 14px; text-align: center; font-size: 12px; }
.ij-az a, .ij-az span { display: inline-block; min-width: 14px; }
.ij-az a.active { font-weight: 700; text-decoration: underline; }
.ij-az .empty { color: var(--ij-muted); opacity: .5; }
@media (max-width: 900px) { .ij-letter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ij-letter-grid { grid-template-columns: 1fr; } }

/* PlumX, Dimensions and Altmetric badges under the DOI */
.ij-metric-badges { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 12px 0 4px; min-height: 64px; }
.ij-metric-badges .__dimensions_badge_embed__ { display: inline-block; }
.ij-metric-badges .altmetric-embed img { width: 60px; height: 60px; }
.ij-online-from { margin-top: 6px; font-size: 14px; color: #555; }
