/* IJRHS Journal theme: layout and components. Colours and fonts live in theme.json. */

:root {
	--ij-navy: var(--wp--preset--color--primary, #0d3b66);
	--ij-navy-dark: var(--wp--preset--color--primary-dark, #082846);
	--ij-green: var(--wp--preset--color--accent, #4b2a85);
	--ij-green-soft: var(--wp--preset--color--accent-soft, #f1ecf8);
	--ij-surface: var(--wp--preset--color--surface, #f4f7fa);
	--ij-line: var(--wp--preset--color--line, #dbe2ea);
	--ij-muted: var(--wp--preset--color--muted, #566273);
	--ij-ink: var(--wp--preset--color--ink, #16202c);
	--ij-gold: var(--wp--preset--color--gold, #b7791f);
	--ij-radius: 10px;
	--ij-serif: var(--wp--preset--font-family--serif);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ij-green); outline-offset: 2px; }
.ij-muted { color: var(--ij-muted); }

/* ---------- Header ---------- */

.ij-header { background: #fff; border-bottom: 1px solid var(--ij-line); position: relative; z-index: 20; }
.ij-topbar { background: var(--ij-navy-dark); color: #dce6f0; font-size: 0.8125rem; }
.ij-topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.45rem 0; flex-wrap: wrap; }
.ij-topbar__facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.ij-topbar__facts li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ij-topbar__mail { color: #fff; text-decoration: none; }
.ij-topbar__mail:hover { color: #ffb3bb; }
.ij-oa { width: 8px; height: 8px; border-radius: 50%; background: #f2b84b; display: inline-block; }

.ij-brandbar { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.ij-brandbar__row { gap: 1rem 2rem; }
.ij-brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--ij-ink); }
.ij-brand:hover { color: var(--ij-ink); }
.ij-brand__logo { width: auto; height: 64px; flex: none; }
.ij-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.ij-brand__abbr { font-weight: 700; letter-spacing: 0.08em; font-size: 0.8125rem; color: var(--ij-green); }
.ij-brand__name { font-family: var(--ij-serif); font-weight: 650; font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 34ch; }
.ij-brand__pub { font-size: 0.8125rem; color: var(--ij-muted); margin-top: 0.15rem; }
.ij-brandbar__actions { gap: 0.75rem; }
.ij-search .wp-block-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ij-search .wp-block-search__input { border: 1px solid var(--ij-line); border-radius: 6px 0 0 6px; padding: 0.55rem 0.75rem; min-width: 210px; font-size: 0.9375rem; }
.ij-search .wp-block-search__button { margin-left: 0; border-radius: 0 6px 6px 0; background: var(--ij-surface); color: var(--ij-navy); border: 1px solid var(--ij-line); border-left: 0; }
.ij-btn-submit .wp-block-button__link { background: var(--ij-green); white-space: nowrap; }
.ij-btn-submit .wp-block-button__link:hover { background: #8c0d18; }

.ij-navbar { border-top: 1px solid var(--ij-line); }
.ij-nav { min-height: 48px; }
.ij-nav .wp-block-navigation-item__content { padding: 0.8rem 1rem; color: var(--ij-ink); }
.ij-nav > .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { padding-left: 0; }
.ij-nav .wp-block-navigation-item__content:hover { color: var(--ij-green); }
.ij-nav .wp-block-navigation__submenu-container { border: 1px solid var(--ij-line) !important; border-radius: 8px; box-shadow: 0 12px 28px rgba(13, 59, 102, 0.12); padding: 0.4rem 0; min-width: 250px !important; }
.ij-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.5rem 1rem; }
.ij-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--ij-surface); }
.ij-nav .wp-block-navigation__responsive-container-open { padding: 0.8rem 0; }

/* ---------- Page layout with journal menu ---------- */

.ij-main { padding-top: 2rem; padding-bottom: 4rem; }
.ij-layout { gap: 3rem; align-items: flex-start; }
.ij-layout__side { position: sticky; top: 1rem; }
.ij-layout__body { min-width: 0; }
.ij-layout__body > * + * { margin-top: 1.1rem; }
.ij-page-title { margin-top: 0.3rem; margin-bottom: 1.2rem; }
.ij-crumbs { font-size: 0.8125rem; color: var(--ij-muted); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ij-crumbs a { color: var(--ij-muted); text-decoration: none; }
.ij-crumbs a:hover { color: var(--ij-navy); text-decoration: underline; }

.ij-sidemenu { border: 1px solid var(--ij-line); border-radius: var(--ij-radius); padding: 1rem 0 0.5rem; background: #fff; font-size: 0.9rem; }
.ij-sidemenu__h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; color: var(--ij-muted); margin: 0.9rem 1.1rem 0.3rem; }
.ij-sidemenu__h:first-child { margin-top: 0; }
.ij-sidemenu ul { list-style: none; margin: 0; padding: 0; }
.ij-sidemenu li a { display: block; padding: 0.32rem 1.1rem; color: var(--ij-ink); text-decoration: none; border-left: 3px solid transparent; }
.ij-sidemenu li a:hover { background: var(--ij-surface); border-left-color: var(--ij-green); color: var(--ij-navy); }
.ij-sidemenu li a[aria-current="page"] { border-left-color: var(--ij-navy); font-weight: 600; background: var(--ij-surface); }
.ij-sidemenu__cta { border-top: 1px solid var(--ij-line); margin-top: 0.9rem; padding: 0.9rem 1.1rem 0.5rem; display: grid; gap: 0.55rem; font-size: 0.875rem; }
.ij-sidemenu__submit { background: var(--ij-green); color: #fff !important; text-align: center; padding: 0.6rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.ij-sidemenu__submit:hover { background: #8c0d18; }

/* ---------- Content blocks ---------- */

.ij-content h2 { margin-top: 2.2rem; padding-top: 0.2rem; }
.ij-content h3 { margin-top: 1.6rem; }
.ij-content :where(ul, ol) { padding-left: 1.3rem; }
.ij-content li + li { margin-top: 0.3rem; }
.ij-content .wp-block-table table { border-collapse: collapse; width: 100%; }
.ij-content .wp-block-table :where(th, td) { border: 1px solid var(--ij-line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.ij-content .wp-block-table thead th { background: var(--ij-surface); font-weight: 650; }
.ij-content .wp-block-table figcaption { font-size: 0.8125rem; color: var(--ij-muted); }

.ij-lead { font-size: 1.15rem; color: #2b3746; }
.ij-note { background: var(--ij-surface); border-left: 4px solid var(--ij-navy); border-radius: 0 8px 8px 0; padding: 1rem 1.2rem; }
.ij-note--green { border-left-color: var(--ij-green); background: var(--ij-green-soft); }
.ij-note--gold { border-left-color: var(--ij-gold); background: #fbf4e6; }
.ij-note > :first-child { margin-top: 0; }
.ij-note > :last-child { margin-bottom: 0; }

.ij-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ij-card { border: 1px solid var(--ij-line); border-radius: var(--ij-radius); padding: 1.15rem 1.2rem; background: #fff; }
.ij-card h3, .ij-card h4 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.ij-card p { margin: 0; font-size: 0.9375rem; color: #364252; }
.ij-card__num { font-family: var(--ij-serif); font-size: 1.9rem; font-weight: 650; color: var(--ij-navy); line-height: 1.1; display: block; }

.ij-steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 0.75rem; }
.ij-steps > li { counter-increment: s; position: relative; padding: 0.95rem 1rem 0.95rem 3.6rem; border: 1px solid var(--ij-line); border-radius: var(--ij-radius); background: #fff; margin: 0 !important; }
.ij-steps > li::before { content: counter(s); position: absolute; left: 1rem; top: 0.9rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ij-navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.ij-steps > li strong:first-child { display: block; }

.ij-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0 !important; list-style: none; }
.ij-people > li { border: 1px solid var(--ij-line); border-radius: var(--ij-radius); padding: 1rem 1.1rem; margin: 0 !important; display: grid; grid-template-columns: 48px 1fr; gap: 0.2rem 0.9rem; align-items: start; }
.ij-people .ij-avatar { grid-row: span 3; width: 48px; height: 48px; border-radius: 50%; background: var(--ij-surface); color: var(--ij-navy); display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; border: 1px solid var(--ij-line); }
.ij-people .ij-person__name { font-weight: 650; }
.ij-people .ij-person__role { font-size: 0.8125rem; color: var(--ij-green); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ij-people .ij-person__aff { font-size: 0.875rem; color: var(--ij-muted); }
.ij-people--lead > li { border-color: #b9c9db; background: var(--ij-surface); }

details.ij-year { border: 1px solid var(--ij-line); border-radius: var(--ij-radius); margin: 0 0 0.6rem; background: #fff; }
details.ij-year > summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
details.ij-year > summary::-webkit-details-marker { display: none; }
details.ij-year > summary::after { content: "+"; color: var(--ij-muted); font-weight: 400; }
details.ij-year[open] > summary::after { content: "–"; }
details.ij-year > summary span { color: var(--ij-muted); font-weight: 400; font-size: 0.875rem; margin-left: auto; margin-right: 1rem; }
.ij-issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.4rem 1rem; list-style: none; padding: 0 1rem 1rem !important; margin: 0; }
.ij-issues li { margin: 0 !important; font-size: 0.9375rem; }

/* ---------- Article lists and article pages ---------- */

.ij-tag { display: inline-block; font-size: 0.72rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ij-navy); background: #e8eff6; border-radius: 4px; padding: 0.15rem 0.45rem; }
.ij-tag--oa { color: #8a5a12; background: #fbf0dc; }
.ij-rows { display: grid; }
.ij-row { border-bottom: 1px solid var(--ij-line); padding: 1.1rem 0; }
.ij-row:first-child { padding-top: 0.2rem; }
.ij-row__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; font-size: 0.8125rem; color: var(--ij-muted); margin: 0 0 0.45rem; }
.ij-row__title { font-size: 1.15rem !important; margin: 0 0 0.3rem !important; font-weight: 600; }
.ij-row__title a { color: var(--ij-ink); text-decoration: none; }
.ij-row__title a:hover { color: var(--ij-navy); text-decoration: underline; }
.ij-row__authors { margin: 0 0 0.4rem; font-size: 0.9375rem; color: #364252; }
.ij-row__links { margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; font-size: 0.875rem; font-weight: 550; }

.ij-article { border-bottom: 1px solid var(--ij-line); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.ij-article__kicker { display: flex; flex-wrap: wrap; gap: 0.5rem 0.8rem; align-items: center; font-size: 0.875rem; color: var(--ij-muted); margin-top: 0; }
.ij-article__authors { list-style: none; padding: 0 !important; display: grid; gap: 0.45rem; }
.ij-article__authors li { margin: 0 !important; }
.ij-article__authors span { display: block; font-size: 0.875rem; color: var(--ij-muted); }
.ij-orcid { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #a6ce39; color: #fff !important; font-size: 0.6rem; font-weight: 700; text-decoration: none; vertical-align: 1px; }
.ij-article__dates { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 1rem 0; font-size: 0.875rem; }
.ij-article__dates dt { color: var(--ij-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ij-article__dates dd { margin: 0; font-weight: 550; }
.ij-article__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.ij-btn { display: inline-block; background: var(--ij-navy); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 0.65rem 1.2rem; border-radius: 6px; border: 1px solid var(--ij-navy); }
.ij-btn:hover { background: var(--ij-navy-dark); }
.ij-btn--ghost { background: #fff; color: var(--ij-navy) !important; }
.ij-btn--ghost:hover { background: var(--ij-surface); }
.ij-btn--green { background: var(--ij-green); border-color: var(--ij-green); }
.ij-btn--green:hover { background: #8c0d18; }
.ij-article__abstract { background: var(--ij-surface); border-radius: var(--ij-radius); padding: 0.4rem 1.3rem 1rem; }
.ij-article__abstract h2 { font-size: 1.15rem; margin-top: 0.9rem !important; }
.ij-article__kw { font-size: 0.9375rem; }
.ij-article__foot { border-top: 1px solid var(--ij-line); margin-top: 2rem; padding-top: 0.5rem; }
.ij-article__foot h2 { font-size: 1.15rem; margin-top: 1.4rem !important; }
.ij-cite { background: var(--ij-surface); padding: 0.9rem 1.1rem; border-radius: 8px; font-size: 0.9375rem; }

/* ---------- Homepage ---------- */

.ij-hero { background: linear-gradient(180deg, #f4f7fa 0%, #fff 100%); border-bottom: 1px solid var(--ij-line); padding-top: 3rem; padding-bottom: 2.5rem; }
.ij-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; align-items: center; }
.ij-hero__eyebrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.ij-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 1rem; max-width: 22ch; }
.ij-hero__lead { font-size: 1.125rem; color: #2b3746; max-width: 60ch; margin: 0 0 1.5rem; }
.ij-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ij-cover { aspect-ratio: 3 / 4; border-radius: 6px; background: var(--ij-navy); color: #fff; padding: 1.3rem 1.2rem; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(13, 59, 102, 0.22), 0 2px 0 rgba(0,0,0,.05); position: relative; overflow: hidden; text-decoration: none; }
.ij-cover:hover { color: #fff; }
.ij-cover::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; border: 26px solid rgba(245, 222, 0, 0.6); }
.ij-cover__abbr { font-weight: 800; letter-spacing: 0.12em; font-size: 1.6rem; }
.ij-cover__name { font-family: var(--ij-serif); font-size: 0.95rem; line-height: 1.3; margin-top: 0.4rem; opacity: 0.92; }
.ij-cover__issue { margin-top: auto; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,.3); padding-top: 0.7rem; position: relative; z-index: 1; }
.ij-cover__issue strong { display: block; font-size: 1.05rem; }
.ij-cover__issn { font-size: 0.75rem; opacity: 0.8; position: relative; z-index: 1; }

.ij-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ij-line); border-radius: var(--ij-radius); background: #fff; margin-top: -1.6rem; position: relative; box-shadow: 0 6px 20px rgba(13, 59, 102, 0.06); }
.ij-facts > div { padding: 1rem 1.1rem; border-left: 1px solid var(--ij-line); }
.ij-facts > div:first-child { border-left: 0; }
.ij-facts b { display: block; font-family: var(--ij-serif); font-size: 1.35rem; color: var(--ij-navy); line-height: 1.2; }
.ij-facts span { font-size: 0.8125rem; color: var(--ij-muted); line-height: 1.35; display: block; margin-top: 0.2rem; }

.ij-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; margin-top: 3rem; align-items: start; }
.ij-home-grid aside { display: grid; gap: 1.2rem; position: sticky; top: 1rem; }
.ij-section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ij-ink); padding-bottom: 0.5rem; margin: 0 0 1rem; }
.ij-section-h h2 { margin: 0 !important; font-size: 1.5rem; }
.ij-section-h a { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.ij-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ij-track { border: 1px solid var(--ij-line); border-radius: var(--ij-radius); padding: 1.1rem 1.2rem; border-top: 4px solid var(--ij-navy); }
.ij-track--green { border-top-color: var(--ij-green); }
.ij-track h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.ij-track ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; color: #364252; columns: 2; column-gap: 1.2rem; }
.ij-track li { break-inside: avoid; margin: 0 0 0.2rem !important; }
.ij-box { border: 1px solid var(--ij-line); border-radius: var(--ij-radius); padding: 1.1rem 1.2rem; background: #fff; }
.ij-box h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--wp--preset--font-family--sans); color: var(--ij-muted); margin: 0 0 0.6rem; }
.ij-box p { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.ij-box--cfp { background: var(--ij-green-soft); border-color: #f2c4ca; }
.ij-box--cfp .ij-big { font-family: var(--ij-serif); font-size: 1.25rem; font-weight: 650; color: var(--ij-ink); }
.ij-editor { display: flex; gap: 0.9rem; align-items: center; }
.ij-editor .ij-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ij-surface); border: 1px solid var(--ij-line); display: grid; place-items: center; font-weight: 700; color: var(--ij-navy); flex: none; }
.ij-editor b { display: block; }
.ij-editor span { font-size: 0.85rem; color: var(--ij-muted); }
.ij-linklist { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; }
.ij-linklist li { padding: 0.35rem 0; border-bottom: 1px dashed var(--ij-line); margin: 0 !important; }
.ij-linklist li:last-child { border-bottom: 0; }

.ij-process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: p; list-style: none; padding: 0 !important; margin: 1rem 0 0; }
.ij-process li { counter-increment: p; position: relative; padding: 2.6rem 0.8rem 0 0; margin: 0 !important; font-size: 0.875rem; color: #364252; }
.ij-process li::before { content: counter(p); position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; border: 2px solid var(--ij-navy); color: var(--ij-navy); font-weight: 700; display: grid; place-items: center; z-index: 1; }
.ij-process li::after { content: ""; position: absolute; top: 1rem; left: 2rem; right: 0; height: 2px; background: var(--ij-line); }
.ij-process li:last-child::after { display: none; }
.ij-process li b { display: block; color: var(--ij-ink); font-size: 0.9375rem; margin-bottom: 0.15rem; }
.ij-band { background: var(--ij-surface); border-top: 1px solid var(--ij-line); border-bottom: 1px solid var(--ij-line); padding-top: 2.5rem; padding-bottom: 2.5rem; margin-top: 3.5rem; }
.ij-ids { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.ij-ids a { display: inline-flex; flex-direction: column; border: 1px solid var(--ij-line); background: #fff; border-radius: 8px; padding: 0.65rem 1rem; text-decoration: none; color: var(--ij-ink); min-width: 170px; }
.ij-ids a:hover { border-color: var(--ij-navy); }
.ij-ids a b { font-size: 0.9375rem; }
.ij-ids a span { font-size: 0.8125rem; color: var(--ij-muted); }

/* ---------- Footer ---------- */

.ij-footer { background: #0b1d30; color: #c9d4e0; padding-top: 3rem; padding-bottom: 1.5rem; font-size: 0.9rem; margin-top: 0; }
.ij-footer a { color: #fff; text-decoration: none; }
.ij-footer a:hover { color: #ffb3bb; text-decoration: underline; }
.ij-footer h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; margin: 0 0 0.8rem; }
.ij-footer ul { list-style: none; padding: 0; margin: 0; }
.ij-footer li { margin: 0 0 0.45rem; }
.ij-footer__title { font-family: var(--ij-serif); color: #fff; font-size: 1.15rem; font-weight: 650; }
.ij-footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.8125rem; color: #92a3b6; }
.ij-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.2); z-index: 50; }
.ij-whatsapp:hover { background: #17834a; color: #fff; }

/* ---------- Small screens ---------- */

@media (max-width: 1080px) {
	.ij-facts { grid-template-columns: repeat(3, 1fr); }
	.ij-facts > div:nth-child(4) { border-left: 0; }
	.ij-facts > div:nth-child(n+4) { border-top: 1px solid var(--ij-line); }
	.ij-home-grid { grid-template-columns: 1fr; }
	.ij-home-grid aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.ij-process { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; }
	.ij-process li:nth-child(3)::after { display: none; }
}
@media (max-width: 781px) {
	.ij-layout { flex-direction: column-reverse; gap: 2rem; }
	.ij-layout__side { position: static; flex-basis: auto !important; width: 100%; }
	.ij-hero { padding-top: 2rem; }
	.ij-cover { display: none; }
	.ij-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.ij-cover { max-width: 200px; }
	.ij-tracks { grid-template-columns: 1fr; }
	.ij-brandbar__actions { width: 100%; flex-wrap: wrap !important; }
	.ij-brandbar__actions .wp-block-buttons { width: 100%; }
	.ij-btn-submit, .ij-btn-submit .wp-block-button__link { width: 100%; text-align: center; }
	.ij-search { flex: 1; }
	.ij-search .wp-block-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ij-search .wp-block-search__input { min-width: 0; }
	.ij-topbar__facts li:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) {
	.ij-facts { grid-template-columns: repeat(2, 1fr); }
	.ij-facts > div { border-left: 0 !important; border-top: 1px solid var(--ij-line); }
	.ij-facts > div:nth-child(-n+2) { border-top: 0; }
	.ij-facts > div:nth-child(even) { border-left: 1px solid var(--ij-line) !important; }
	.ij-process { grid-template-columns: 1fr 1fr; }
	.ij-process li::after { display: none; }
	.ij-track ul { columns: 1; }
	.ij-brand__logo { width: auto; height: 48px; }
	.ij-topbar__mail { display: none; }
}

.ij-content .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; }

/* Accent touch from the journal logo */
.ij-topbar { border-bottom: 3px solid var(--ij-green); }
.ij-section-h { border-bottom-color: var(--ij-navy); }
.ij-section-h::after { content: none; }
.ij-brand__abbr { color: var(--ij-green); }

/* 1.0.1: WordPress 7.1 applies the button element style to every <button>; keep menu dropdown arrows plain. */
.wp-block-navigation .wp-block-navigation__submenu-icon,
.wp-block-navigation .wp-block-navigation-submenu__toggle { background: transparent !important; color: inherit !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; width: 0.75em !important; height: 0.75em !important; margin-left: 0.25em; }
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close { background: transparent !important; color: inherit !important; padding: 0 !important; }

/* 1.0.3: old picture buttons shown as theme buttons (inc/legacy-buttons.php). */
.ij-btn--sm { font-size: 0.8125rem; padding: 0.4rem 0.8rem; white-space: nowrap; margin: 0.15rem 0; }

/* 1.0.3: view counts (Page Views Count plugin) are not shown to readers; the plugin keeps counting. */
.pvc_stats, .pvc_clear { display: none !important; }

/* 1.0.4: site-wide view total under the homepage facts strip (inc/site-stats.php). */
.ij-facts__note { margin: 0.6rem 0 0; text-align: right; font-size: 0.8125rem; color: var(--ij-muted); }

/* 1.0.5: one layout for every issue page (inc/issue-toc.php). */
.ij-toc { list-style: none; padding: 0; margin: 0; }
.ij-toc__issue-date { color: var(--ij-muted); font-size: 0.9375rem; margin: 0 0 0.8rem; }
.ij-toc__num { color: var(--ij-navy); margin-right: 0.2rem; }
.ij-toc__meta span { color: var(--ij-line); }
.ij-toc__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
.ij-toc__actions .ij-btn--sm { margin: 0; }

/* 1.0.6: subject list (homepage and /subjects/). */
.ij-subjects { list-style: none; padding: 0; margin: 0.8rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem; }
.ij-subjects li { background: var(--ij-surface); border: 1px solid var(--ij-line); border-radius: 6px; padding: 0.55rem 0.8rem; font-size: 0.9375rem; }

/* 1.0.8: contact box under each issue list. */
.ij-toc__contact { margin-top: 2rem; }

/* 1.0.12: search form, issue counts, affiliations. */
.ij-searchform { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.ij-searchform input[type=search] { flex: 1 1 220px; min-width: 0; padding: 0.55rem 0.7rem; border: 1px solid var(--ij-line); border-radius: 6px; font: inherit; }
.ij-searchform select { padding: 0.5rem; border: 1px solid var(--ij-line); border-radius: 6px; font: inherit; background: #fff; }
.ij-searchform button { padding: 0.55rem 1.1rem; border-radius: 6px; }
.ij-count { color: var(--ij-muted); font-size: 0.8125rem; white-space: nowrap; }
.ij-article__authors span { display: block; font-size: 0.875rem; color: var(--ij-muted); }
.ij-article__actions { flex-wrap: wrap; }

/* Stray empty paragraphs/line breaks inside card grids never show as boxes. */
.ij-cards > p:empty, .ij-cards > br, .ij-card > p:empty, .ij-cards > p:not(:has(*)):empty, .ij-steps > p:empty, .ij-steps > br, .ij-people > p:empty, .ij-people > br { display: none !important; }

/* Phone readability (3 Nov 2026): body text never below 16px, menu labels readable, taps 44px */
@media (max-width: 600px) {
  .ij-sidemenu__h { font-size: 0.8125rem; }
  .entry-content p, .entry-content li, .entry-content td { font-size: max(1rem, 1em); }
  .wp-block-navigation a, .ij-sidemenu a { min-height: 44px; display: flex; align-items: center; }
}

/* Palette rule (3 Nov): muted plugin colours that match the journal */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background-color: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny, .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences, .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences { background-color: #f4f7fa !important; border-color: #dbe2ea !important; color: #16202c !important; }
.cmplz-cookiebanner a { color: var(--wp--preset--color--primary) !important; }
.mystickyelements-social-icon, .mystickyelements-social-text, .mystickyelements-social-icon a, .mystickyelements-social-text a { background-color: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; color: #fff !important; }
.mystickyelements-minimize { background-color: var(--wp--preset--color--primary-dark) !important; }
.ij-whatsapp { background-color: #2f7f55 !important; }

/* Layout variant (3 Nov): each journal has its own arrangement */
.ij-cover::after { border-color: color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent) !important; }
@media (min-width: 782px) {
  .ij-brandbar__row { flex-direction: column !important; align-items: center !important; text-align: center; }
  .ij-brand { flex-direction: column; text-align: center; }
  .ij-navbar .wp-block-navigation__container { justify-content: center !important; }
}
@media (min-width: 1081px) { .ij-hero__grid { grid-template-columns: minmax(0, 1fr) 220px !important; } }
.ij-section-h { border-bottom: 0 !important; border-left: 4px solid var(--wp--preset--color--accent); padding-left: 0.75rem; }
.ij-box, .ij-facts, .ij-cover { border-radius: 16px !important; }
.ij-facts { background: var(--wp--preset--color--accent-soft) !important; }

/* Readability + tap size (3 Nov) */
.ij-topbar a, .ij-topbar a:visited { color: #ffffff !important; text-decoration: underline; text-underline-offset: 2px; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }

/* Phone text at least 16px: lists, sidebar, footer (3 Nov 2026) */
@media (max-width: 600px) {
  .ij-sidemenu, .ij-sidemenu a, .ij-row__meta, .ij-row__authors, .ij-row__links, .ij-subjects li, .ij-facts__note, .ij-box p, .ij-muted, .ij-section-h,
  .ij-btn, .wp-block-button__link, .ij-topbar__facts li, .ij-brand__pub,
  .ij-footer, .ij-footer p, .ij-footer li, .ij-footer a, .ij-footer__legal, .ij-footer .wp-block-paragraph { font-size: 16px; }
  .ij-tag { font-size: 14px; }
}

/* ux-typescale-2026-11 */
/* One type scale on every page: same heading sizes, text 16px minimum, left-aligned (3 Nov 2026) */
body :is(main, aside, footer, .ij-footer, .wp-block-template-part, .ij-home-grid, .ij-article) :is(p, li, a, span, div, td, th, dd, dt, label, small, em, strong, b, i, time, cite):not(:is(h1, h2, h3, header, .ij-header, .ij-topbar, .ij-navbar, .ij-cover, .ij-brand, .ij-hero, .ij-facts, #wpadminbar, .cmplz-cookiebanner, .mystickyelements-fixed, .dashicons, [class*="icon"]) *):not([class*="icon"]):not(.ij-tag) { font-size: max(16px, 1em) !important; }
.ij-tag { font-size: 14px !important; }
@media (max-width: 600px) { .ij-tag { font-size: 16px !important; } }
body main h1, body .ij-hero h1 { font-size: clamp(30px, 2.4vw + 18px, 44px) !important; line-height: 1.2 !important; }
body main h2, body aside h2 { font-size: clamp(22px, 0.6vw + 18px, 24px) !important; line-height: 1.3 !important; }
body main h3, body aside h3, body footer h3, body .ij-box h3 { font-size: 19px !important; line-height: 1.35 !important; text-transform: none !important; letter-spacing: 0 !important; }
body main h4, body aside h4, body footer h4 { font-size: 17px !important; }
body :is(main, aside) :is(h1, h2, h3, h4, p, li, dd, dt, td, blockquote, figcaption, em), body .entry-content * { text-align: left !important; }
body :is(main, aside) :is(.wp-block-button__link, .ij-btn, button) { text-align: center !important; }
body main :is(h1, h2, h3, h4) :is(a, span) { font-size: inherit !important; }

/* ux-nav-sticky-2026-11 */
/* Menu buttons (3 Nov 2026): the menu lines show only on phone, the close cross only inside the open menu */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close { display: none !important; }
@media (min-width: 600px) { .wp-block-navigation__responsive-container-open:not(.always-shown) { display: none !important; } }
/* Open phone menu: a tidy list of the main items, sub-items stay on their pages */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li { width: 100%; border-bottom: 1px solid rgba(0,0,0,.08); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li > a { display: block; padding: 12px 4px !important; font-size: 18px !important; }
/* Phone: Home, About and Editorial board stay visible in the row beside the menu lines */
@media (max-width: 599px) {
  header .wp-block-navigation { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 4px; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: flex !important; position: static !important; background: transparent !important; width: auto !important; padding: 0 !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-close,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content { display: flex !important; position: static !important; padding: 0 !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 14px !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li:nth-child(n+4),
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { display: none !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > a { white-space: nowrap; font-size: 16px !important; min-height: 44px; display: flex; align-items: center; }
}
/* Contact Us (phone and tablet): small buttons at the bottom left, never over the menu or the Home tab */
@media (max-width: 1024px) {
  .mystickyelements-fixed { top: auto !important; bottom: 14px !important; left: 10px !important; transform: none !important; }
  .mystickyelements-fixed .mystickyelements-lists { display: flex !important; flex-direction: row !important; gap: 8px; height: auto !important; }
  .mystickyelements-fixed li.mystickyelements-minimize { display: none !important; }
  .mystickyelements-fixed .mystickyelements-contact-form > .mystickyelements-social-icon { width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; font-size: 0 !important; writing-mode: horizontal-tb !important; transform: none !important; display: flex !important; align-items: center; justify-content: center; border-radius: 50% !important; }
  .mystickyelements-fixed .mystickyelements-contact-form > .mystickyelements-social-icon i { font-size: 18px !important; }
  .mystickyelements-fixed .mystickyelements-social-icon-li > .mystickyelements-social-icon { width: 44px !important; height: 44px !important; border-radius: 50% !important; }
  .mystickyelements-fixed .element-contact-form { bottom: 54px !important; top: auto !important; left: 0 !important; max-width: calc(100vw - 20px) !important; }
}
@media (max-width: 1024px) { .mystickyelements-fixed .mystickyelements-social-whatsapp { display: none !important; } }

/* ux-table-wrap-2026-11 */
/* Tables: whole words, no letters split across lines (3 Nov 2026) */
.entry-content table :is(td, th), main table :is(td, th) { word-break: normal !important; overflow-wrap: normal !important; hyphens: manual !important; }
.entry-content table :is(td, th):first-child, main table :is(td, th):first-child { min-width: 7.5em; }

/* ux-ijrhs-header-2026-11 */
/* Header like IJRMP: logo beside the title, search and Submit on the right (3 Nov 2026) */
@media (min-width: 782px) {
  .ij-brandbar__row { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; text-align: left !important; }
  .ij-brand { flex-direction: row !important; text-align: left !important; align-items: center !important; }
  .ij-navbar .wp-block-navigation__container { justify-content: flex-start !important; }
}
/* Journal logo on the current-issue cover */
.ij-cover__abbr::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: .6rem; border-radius: 10px; background: #fff url(../img/ijrhs-logo-badge.png) center / 80% auto no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,.18); }

/* ux-ijrhs-nocontacttab-2026-11 */
/* No Contact Us side tab on desktop; the Contact page and form stay (3 Nov 2026) */
@media (min-width: 1025px) { .mystickyelements-fixed { display: none !important; } }

/* ux-s3-cite-2026-11 */
/* How to cite box near the top of article pages (3 Nov 2026) */
.ij-cite-box { margin: 1rem 0 1.25rem; padding: 0.9rem 1rem; border: 1px solid rgba(0,0,0,.12); border-left: 4px solid var(--wp--preset--color--primary); border-radius: 8px; background: rgba(0,0,0,.025); }
.ij-cite-box h2 { margin: 0 0 0.4rem; }
.ij-cite-box .ij-cite { margin: 0 0 0.6rem; }
.ij-cite-copy { cursor: pointer; }
.ij-cite-end { display: none; }

/* ux-tablet-nav-cover-2026-11 */
/* Tablet menu (3 Nov 2026): on iPad widths use the same tidy row as phones - menu lines, then Home, About, Editorial board */
@media (min-width: 600px) and (max-width: 1023px) {
  header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
  header .wp-block-navigation { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 4px; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: flex !important; position: static !important; background: transparent !important; width: auto !important; padding: 0 !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-close,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-dialog,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content { display: flex !important; position: static !important; padding: 0 !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 18px !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li:nth-child(n+4),
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-icon,
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { display: none !important; }
  header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > a { white-space: nowrap; font-size: 16px !important; min-height: 44px; display: flex; align-items: center; }
  header .wp-block-navigation__responsive-container.is-menu-open { position: fixed !important; inset: 0 !important; display: flex !important; flex-direction: column; background: #fff !important; padding: 24px !important; z-index: 100000 !important; overflow-y: auto; }
}
/* Cover card (3 Nov 2026): the card grows to fit its text so the ISSN line is never cut off by the logo */
.ij-cover { overflow: clip !important; }
/* While the menu is open, the contact and WhatsApp bubbles step aside */
body:has(.wp-block-navigation__responsive-container.is-menu-open) :is(.ij-whatsapp, .mystickyelements-fixed) { display: none !important; }

/* ux-a11y-2026-11 */
[class*=footer] h3.wp-block-heading{font-size:17px}
.entry-content p a,.wp-block-post-content p a{text-decoration:underline}
