/* =========================================================
   KONPEMAS theme for OJS 3.4
   Loaded after the default theme's stylesheet, which still
   styles pages this theme does not override (login, search…).
   --jp-primary and --jp-accent come from the theme options.
   ========================================================= */

:root {
	--jp-primary: #1B5E3B;
	--jp-accent: #F2B544;
	--jp-lime: #A8C84C;
	--jp-deep: #12331F;
	--jp-ink: #1A211C;
	--jp-ink-2: #2B342E;
	--jp-ink-3: #3F4A42;
	--jp-muted: #5B665E;
	--jp-line: #E3E9E2;
	--jp-line-2: #D5DFD4;
	--jp-line-soft: #EEF2ED;
	--jp-tint: #F2F6F1;
	--jp-tint-2: #E8F1E6;
	--jp-sand: #FBF3DF;
	--jp-sand-ink: #6B4A12;
	--jp-pdf-bg: #FBEBE8;
	--jp-pdf-ink: #A12F1E;
	--jp-pdf-strong: #C0392B;
	--jp-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--jp-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--jp-wrap: 1200px;
	--jp-gutter: 24px;
}

/* ---------- Base and resets over the default theme ---------- */
.jp-theme {
	margin: 0;
	background: #FFFFFF;
	color: var(--jp-ink);
	font-family: var(--jp-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.jp-theme [hidden] { display: none !important; }
.jp-theme *, .jp-theme *::before, .jp-theme *::after { box-sizing: border-box; }
.jp-theme a { color: var(--jp-primary); }
.jp-theme a:hover, .jp-theme a:focus { color: #0F3D26; }
.jp-theme :focus-visible { outline: 3px solid var(--jp-accent); outline-offset: 2px; border-radius: 4px; }
.jp-theme ul, .jp-theme ol { margin: 0; padding: 0; list-style: none; }
.jp-theme dl, .jp-theme dd, .jp-theme figure { margin: 0; }
.jp-theme img { max-width: 100%; height: auto; }
.jp-theme h1, .jp-theme h2, .jp-theme h3, .jp-theme h4 { margin: 0; font-family: var(--jp-serif); }

.jp-theme .pkp_structure_page { width: 100%; max-width: none; margin: 0; padding: 0; background: #FFFFFF; }
.jp-theme .pkp_structure_page::before, .jp-theme .pkp_structure_page::after { display: none; }

.jp-wrap { width: 100%; max-width: var(--jp-wrap); margin-left: auto; margin-right: auto; padding-left: var(--jp-gutter); padding-right: var(--jp-gutter); }

/* Page and sidebar columns */
.jp-theme .pkp_structure_content.jp-layout {
	display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px;
	width: 100%; max-width: var(--jp-wrap); padding-top: 40px; padding-bottom: 72px; background: none;
}
.jp-theme .pkp_structure_content::before, .jp-theme .pkp_structure_content::after { display: none; }
.jp-theme .pkp_structure_main {
	flex: 999 1 600px; float: none; width: auto; min-width: 0; padding: 0; margin: 0; background: none;
}
.jp-theme .pkp_structure_main::before, .jp-theme .pkp_structure_main::after { display: none; }
.jp-theme .pkp_structure_main .page { padding: 0; }
.jp-theme .jp-sidebar {
	flex: 1 1 300px; float: none; width: auto; min-width: 0; padding: 0; margin: 0;
	display: flex; flex-direction: column; gap: 18px;
}

/* Skip links stay available to keyboard users */
.jp-theme .cmp_skip_to_content { position: absolute; left: 0; top: 0; z-index: 100; }
.jp-theme .cmp_skip_to_content a { position: absolute; left: -9999px; }
.jp-theme .cmp_skip_to_content a:focus { left: 12px; top: 12px; padding: 10px 16px; border-radius: 10px; background: #FFFFFF; color: var(--jp-primary); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

/* ---------- Shared pieces ---------- */
.jp-stack { display: flex; flex-direction: column; gap: 40px; }
.jp-stack--28 { gap: 28px; }
.jp-stack--36 { gap: 36px; }
.jp-stack--44 { gap: 44px; }
.jp-section { display: flex; flex-direction: column; gap: 16px; }
.jp-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--jp-deep); }
.jp-section__head--sm { padding-bottom: 12px; }
.jp-section__titles { display: flex; flex-direction: column; gap: 4px; }
.jp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--jp-primary); }
.jp-theme .jp-h1 { font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; color: var(--jp-deep); }
.jp-theme .jp-h2 { font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--jp-deep); }
.jp-theme .jp-h3 { font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--jp-deep); }
.jp-theme .jp-sectitle { padding-bottom: 12px; border-bottom: 2px solid var(--jp-deep); font-weight: 700; font-size: 24px; color: var(--jp-deep); }
.jp-theme .jp-label { font-family: var(--jp-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jp-muted); }
.jp-muted { font-size: 13px; color: var(--jp-muted); }
.jp-theme .jp-more { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.jp-card { padding: 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); display: flex; flex-direction: column; gap: 12px; }
.jp-card--dark { background: var(--jp-deep); border-color: var(--jp-deep); color: #FFFFFF; }

.jp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
	border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer;
	transition: filter .15s ease, background-color .15s ease;
}
.jp-btn:hover { filter: brightness(.95); }
.jp-theme .jp-btn--primary, .jp-theme .jp-btn--primary:hover, .jp-theme .jp-btn--primary:focus { background: var(--jp-primary); color: #FFFFFF; }
.jp-theme .jp-btn--accent, .jp-theme .jp-btn--accent:hover, .jp-theme .jp-btn--accent:focus { background: var(--jp-accent); color: var(--jp-ink); }
.jp-theme .jp-btn--outline, .jp-theme .jp-btn--outline:hover, .jp-theme .jp-btn--outline:focus { border: 1.5px solid var(--jp-primary); color: var(--jp-primary); background: transparent; }
.jp-btn--sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.jp-btn--block { width: 100%; border-radius: 12px; }
.jp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.jp-theme .jp-btn-mini {
	display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px;
	border: 1px solid var(--jp-line-2); background: #FFFFFF; color: var(--jp-primary);
	font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.jp-btn-mini:hover { background: var(--jp-tint); }

.jp-badge {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
	background: #FFFFFF; border: 1px solid var(--jp-line-2); font-size: 12.5px; font-weight: 700; color: var(--jp-primary);
}
.jp-badge--sm { padding: 4px 11px; }
.jp-badge--muted { color: var(--jp-ink-3); }
.jp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--jp-lime); }
.jp-dot--oa { background: #E8833A; }
.jp-fieldtag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--jp-sand); color: var(--jp-sand-ink); font-size: 12px; font-weight: 700; }
.jp-pilltag { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--jp-tint-2); color: var(--jp-primary); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.jp-newstag { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--jp-accent); color: var(--jp-ink); font-size: 12px; font-weight: 700; }
.jp-tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.jp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jp-chips--years .jp-label { margin-right: 4px; }
.jp-theme .jp-chip {
	min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--jp-line-2); background: #FFFFFF;
	color: var(--jp-ink-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.jp-chip:hover { background: var(--jp-tint); }
.jp-theme .jp-chip[aria-pressed="true"] { background: var(--jp-primary); border-color: var(--jp-primary); color: #FFFFFF; }

.jp-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.jp-keywords span, .jp-theme .jp-keywords a { padding: 3px 9px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--jp-line-2); color: var(--jp-ink-3); text-decoration: none; }
.jp-keywords--links { font-size: 13px; gap: 8px; }
.jp-theme .jp-keywords a:hover { background: var(--jp-tint); }

.jp-orcid {
	display: inline-block; width: 16px; height: 16px; border-radius: 999px; background: #A6CE39; font-size: 9px; font-weight: 700;
	line-height: 16px; text-align: center; text-decoration: none;
}
.jp-theme a.jp-orcid, .jp-theme a.jp-orcid:hover, .jp-theme .jp-orcid { color: #1A211C; }

/* Galley links, wherever they are shown */
.jp-theme .obj_galley_link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; margin: 0; border-radius: 10px;
	border: 1px solid var(--jp-line-2); background: #FFFFFF; color: var(--jp-primary);
	font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.jp-theme .obj_galley_link::before { display: none; }
.jp-theme .obj_galley_link.pdf { background: var(--jp-pdf-bg); border-color: var(--jp-pdf-bg); color: var(--jp-pdf-ink); }
.jp-theme .obj_galley_link:hover { filter: brightness(.96); color: var(--jp-pdf-ink); }

/* ---------- Top of the page ---------- */
.jp-topbar { background: var(--jp-deep); color: rgba(255, 255, 255, .85); font-size: 12.5px; }
.jp-topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 8px; padding-bottom: 8px; }
.jp-topbar__ids { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.jp-topbar__ids strong { color: #FFFFFF; }
.jp-topbar__user { display: flex; align-items: center; gap: 14px; }
.jp-topbar__sep { opacity: .4; }
.jp-theme .jp-topbar a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.jp-theme .jp-topbar a:hover { text-decoration: underline; color: #FFFFFF; }
.jp-locales { display: flex; gap: 8px; }
.jp-locales strong { color: #FFFFFF; }

/* User menu: the default theme positions it for its own header */
.jp-theme #navigationUserWrapper { position: static; float: none; width: auto; padding: 0; margin: 0; background: none; }
.jp-theme .pkp_navigation_user { display: flex; align-items: center; gap: 16px; position: static; text-align: left; }
.jp-theme .pkp_navigation_user > li { position: relative; display: block; }
.jp-theme .pkp_navigation_user > li > a { display: inline; padding: 0; margin: 0; border: 0; line-height: 1.5; }
.jp-theme .pkp_navigation_user ul { position: absolute; top: 100%; right: 0; left: auto; z-index: 30; display: none; min-width: 180px; margin: 0; padding: 6px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 14px 30px rgba(18, 51, 31, .2); }
.jp-theme .pkp_navigation_user > li:hover ul, .jp-theme .pkp_navigation_user > li:focus-within ul { display: block; }
.jp-theme .pkp_navigation_user ul a { display: block; padding: 8px 12px; margin: 0; border: 0; border-radius: 8px; color: var(--jp-ink); font-weight: 600; }
.jp-theme .pkp_navigation_user ul a:hover { background: var(--jp-tint); color: var(--jp-primary); text-decoration: none; }

.jp-brandbar { background: #FFFFFF; border-bottom: 1px solid var(--jp-line); }
.jp-brandbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.jp-theme .jp-brand { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; color: var(--jp-ink); }
.jp-brand__mark { flex: none; }
.jp-brand__logo { max-height: 72px; width: auto; }
.jp-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jp-brand__name { font-family: var(--jp-serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.15; color: var(--jp-deep); }
.jp-brand__sub { font-size: 13px; color: var(--jp-muted); }
.jp-brand__sub strong { color: var(--jp-primary); }

.jp-search { display: flex; align-items: center; gap: 6px; width: min(100%, 320px); padding: 5px 5px 5px 14px; border: 1px solid var(--jp-line-2); border-radius: 12px; background: #FAFBF8; }
.jp-search:focus-within { border-color: var(--jp-primary); }
.jp-theme .jp-search input { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; font: inherit; font-size: 14px; color: var(--jp-ink); }
.jp-search input::placeholder { color: var(--jp-muted); }
.jp-theme .jp-search button { width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 9px; background: var(--jp-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }

/* Primary menu */
.jp-nav { position: sticky; top: 0; z-index: 20; background: var(--jp-primary); }
.jp-nav__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-left: 16px; padding-right: 16px; }
.jp-nav__toggle { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px; border: 0; background: none; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.jp-theme .pkp_navigation_primary { display: flex; flex-wrap: wrap; margin: 0; padding: 0; font-size: 14px; font-weight: 600; text-align: left; }
.jp-theme .pkp_navigation_primary > li { position: relative; display: block; }
.jp-theme .pkp_navigation_primary > li > a { display: block; margin: 0; padding: 14px; border: 0; color: #FFFFFF; font-weight: 600; text-decoration: none; }
.jp-theme .pkp_navigation_primary > li > a:hover, .jp-theme .pkp_navigation_primary > li > a:focus { background: rgba(255, 255, 255, .12); color: #FFFFFF; outline-offset: -3px; }
.jp-theme .pkp_navigation_primary > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--jp-accent); }
.jp-theme .pkp_navigation_primary ul { position: absolute; top: 100%; left: 0; z-index: 30; display: none; min-width: 230px; margin: 0; padding: 6px; border-radius: 0 0 12px 12px; background: #FFFFFF; box-shadow: 0 14px 30px rgba(18, 51, 31, .2); }
.jp-theme .pkp_navigation_primary > li:hover ul, .jp-theme .pkp_navigation_primary > li:focus-within ul { display: block; }
.jp-theme .pkp_navigation_primary ul a { display: block; margin: 0; padding: 9px 12px; border: 0; border-radius: 8px; color: var(--jp-ink); font-weight: 600; text-decoration: none; }
.jp-theme .pkp_navigation_primary ul a:hover { background: var(--jp-tint); color: var(--jp-primary); }
.jp-nav__cta { margin: 6px 0; }

/* ---------- Page headers ---------- */
.jp-hero, .jp-pagehead { position: relative; overflow: hidden; background: var(--jp-tint); border-bottom: 1px solid var(--jp-line); }
.jp-hero__deco { position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; opacity: .6; }
.jp-hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.jp-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.jp-theme .jp-hero__title { font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; color: var(--jp-deep); }
.jp-hero__text { max-width: 600px; margin: 0; color: var(--jp-ink-3); }
.jp-hero__text p { margin: 0; }
.jp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-tags li { padding: 6px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--jp-line); font-size: 13px; font-weight: 600; }
.jp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.jp-facts > div { padding: 14px 16px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--jp-line); }
.jp-facts dt { font-size: 12px; font-weight: 400; color: var(--jp-muted); }
.jp-facts dd { margin-top: 2px; font-weight: 700; overflow-wrap: anywhere; }
.jp-facts--big > div { padding: 16px 18px; }
.jp-facts--big dd { font-family: var(--jp-serif); font-size: 28px; color: var(--jp-deep); }
.jp-theme .jp-hero__cover { flex: 0 1 300px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; color: var(--jp-primary); text-decoration: none; }

.jp-pagehead__inner { position: relative; display: flex; flex-direction: column; gap: 22px; padding-top: 24px; padding-bottom: 44px; }
.jp-pagehead__inner--tight { gap: 16px; padding-bottom: 40px; }
.jp-pagehead__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.jp-pagehead__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.jp-pagehead__text { max-width: 640px; margin: 0; color: var(--jp-ink-3); }
.jp-pagehead__text p { margin: 0; }
.jp-pagehead .jp-search { background: #FFFFFF; width: min(100%, 340px); }

.jp-theme .cmp_breadcrumbs { padding: 0; margin: 0; font-size: 13px; color: var(--jp-muted); }
.jp-theme .cmp_breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; line-height: 1.4; }
.jp-theme .cmp_breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.jp-theme .cmp_breadcrumbs a { display: inline; font-weight: 600; text-decoration: none; }
.jp-theme .cmp_breadcrumbs .separator { padding: 0; color: var(--jp-muted); }
.jp-theme .cmp_breadcrumbs .current { font-weight: 600; color: var(--jp-ink); }
.jp-theme .cmp_breadcrumbs .current h1, .jp-theme .cmp_breadcrumbs .current span { font: inherit; }

/* Quick links under the hero */
.jp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-top: 32px; }
.jp-theme .jp-quick__item { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--jp-line); color: var(--jp-ink); text-decoration: none; transition: border-color .15s ease; }
.jp-theme .jp-quick__item:hover { border-color: var(--jp-primary); color: var(--jp-ink); }
.jp-quick__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--jp-tint-2); display: flex; align-items: center; justify-content: center; }
.jp-quick__text { display: flex; flex-direction: column; gap: 2px; }
.jp-quick__text span { font-size: 13px; color: var(--jp-muted); }

/* Issue covers */
.jp-cover { position: relative; display: block; flex: none; overflow: hidden; aspect-ratio: 3 / 4.2; border-radius: 6px; background: var(--jp-primary); color: #FFFFFF; }
.jp-cover::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5%; background: rgba(0, 0, 0, .18); z-index: 1; }
.jp-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jp-cover--img { object-fit: cover; }
.jp-cover--img::before { display: none; }
.jp-cover--lg { width: 260px; box-shadow: 0 30px 60px rgba(18, 51, 31, .28); transform: rotate(-2deg); }
.jp-cover--md { width: 220px; box-shadow: 0 26px 50px rgba(18, 51, 31, .26); }
.jp-cover--sm { width: 128px; border-radius: 4px; box-shadow: 0 14px 28px rgba(18, 51, 31, .25); }
.jp-cover--xs { width: 56px; border-radius: 3px; }
.jp-cover__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 0 30px; }
.jp-cover__acronym { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--jp-accent); }
.jp-cover__name { font-family: var(--jp-serif); font-weight: 700; font-size: 21px; line-height: 1.15; }
.jp-cover__issue { margin-top: 6px; font-size: 12px; opacity: .85; }
.jp-cover--md .jp-cover__text { padding: 20px 18px 0 26px; gap: 6px; }
.jp-cover--md .jp-cover__name { font-size: 18px; }
.jp-cover--md .jp-cover__issue { font-size: 11px; }
.jp-cover--sm .jp-cover__text { padding: 12px 10px 0 15px; gap: 4px; }
.jp-cover--sm .jp-cover__acronym { font-size: 7px; }
.jp-cover--sm .jp-cover__name { font-size: 10.5px; }
.jp-cover--sm .jp-cover__issue { font-size: 7px; margin-top: 2px; }
.jp-cover--xs .jp-cover__text { display: none; }

/* Issue header */
.jp-issuehead { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; }
.jp-issuehead > .jp-cover { margin: 0 auto; }
.jp-issuehead__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.jp-issuegalleys li:first-child .obj_galley_link { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--jp-primary); color: #FFFFFF; font-size: 14px; }
.jp-issuegalleys li:not(:first-child) .obj_galley_link { min-height: 46px; padding: 0 20px; border: 1.5px solid var(--jp-primary); border-radius: 999px; background: none; color: var(--jp-primary); font-size: 14px; }

/* ---------- Article lists ---------- */
.jp-toc { display: flex; flex-direction: column; gap: 36px; }
.jp-filter__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.jp-theme .jp-artlist { display: flex; flex-direction: column; border: 1px solid var(--jp-line); border-radius: 18px; background: #FFFFFF; overflow: hidden; counter-reset: jp-article; }
.jp-artlist > li { border-top: 1px solid var(--jp-line); counter-increment: jp-article; transition: background-color .2s ease; }
.jp-artlist > li:first-child, .jp-artlist > li[hidden] + li:not([hidden]) { border-top: 0; }
.jp-artlist > li:hover { background: #F7FAF6; }
.jp-theme .jp-art { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.jp-art__num { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--jp-tint-2); color: var(--jp-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.jp-art__num::before { content: counter(jp-article); }
.jp-art__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.jp-theme .jp-art__title { margin: 0; font-family: var(--jp-serif); font-weight: 600; font-size: 18px; line-height: 1.35; }
.jp-art--full .jp-art__title { font-size: 19px; }
.jp-theme .jp-art__title a { color: var(--jp-deep); text-decoration: none; }
.jp-theme .jp-art__title a:hover { text-decoration: underline; color: var(--jp-primary); }
.jp-theme .jp-art__title .subtitle { display: block; margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--jp-ink-3); }
.jp-theme .jp-art__authors { padding: 0; font-size: 14px; color: var(--jp-ink-3); }
.jp-art__abstract { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: #F4F8F3; border-left: 3px solid var(--jp-primary); font-size: 14px; color: var(--jp-ink-3); }
.jp-art__abstract-text p { display: inline; margin: 0; }
.jp-art__abstract-text strong { color: var(--jp-ink); }
.jp-art__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 2px; }
.jp-theme .jp-art__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; font-size: 12.5px; color: var(--jp-muted); }
.jp-theme .jp-art__meta .pages { float: none; width: auto; padding: 0; color: inherit; font-size: inherit; }
.jp-theme .jp-art__meta a { text-decoration: none; }
.jp-art__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jp-theme .jp-art__galleys { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.jp-theme .jp-art__galleys li { margin: 0; padding: 0; }
.jp-citehint { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: 18px; background: var(--jp-tint); border: 1px solid var(--jp-line); }
.jp-citehint p { margin: 0; font-size: 14px; color: var(--jp-ink-3); }

/* Homepage announcements */
.jp-homenews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.jp-homenews__item { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); }
.jp-theme .jp-homenews__item h3 { font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--jp-deep); }
.jp-homenews__text { font-size: 14px; color: var(--jp-muted); }
.jp-homenews__text p { margin: 0; }
.jp-homenews__item .jp-more { margin-top: auto; }
.jp-homenews__item.is-featured { background: var(--jp-primary); border-color: var(--jp-primary); color: #FFFFFF; }
.jp-theme .jp-homenews__item.is-featured h3 { color: #FFFFFF; }
.jp-homenews__item.is-featured .jp-homenews__text, .jp-homenews__item.is-featured .jp-muted { color: rgba(255, 255, 255, .85); }
.jp-theme .jp-homenews__item.is-featured .jp-more { color: var(--jp-accent); }

/* ---------- Sidebar ---------- */
.jp-sidecta__title { font-family: var(--jp-serif); font-weight: 700; font-size: 20px; }
.jp-sidecta__text { font-size: 14px; color: rgba(255, 255, 255, .82); }
.jp-sidecta { padding: 22px; gap: 10px; }
.jp-sidemenu { border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); overflow: hidden; }
.jp-theme .jp-sidemenu__title { padding: 14px 18px; background: var(--jp-primary); color: #FFFFFF; font-family: var(--jp-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.jp-theme .jp-sidemenu__list { display: flex; flex-direction: column; padding: 6px; }
.jp-theme .jp-sidemenu__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; color: var(--jp-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.jp-theme .jp-sidemenu__list a::after { content: '›'; color: var(--jp-muted); font-size: 18px; line-height: 1; }
.jp-theme .jp-sidemenu__list a:hover { background: var(--jp-tint); color: var(--jp-primary); }
.jp-sidetemplate { flex-direction: row; align-items: center; gap: 14px; }
.jp-sidetemplate__icon { width: 48px; height: 56px; flex: none; border-radius: 8px; background: #2B579A; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.jp-sidetemplate__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jp-theme .jp-sidetemplate__text a { font-size: 13px; font-weight: 700; text-decoration: none; }
.jp-indexers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jp-indexers li { height: 56px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--jp-line); display: flex; align-items: center; justify-content: center; gap: 6px; }
.jp-theme .jp-indexers img { max-height: 34px; width: auto; }
.jp-indexers span { font-size: 12px; font-weight: 700; line-height: 1.1; color: var(--jp-ink-3); }
.jp-license { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--jp-ink-3); }
.jp-theme .jp-license__badge { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--jp-ink); color: #FFFFFF; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.jp-theme .jp-license__badge:hover { color: #FFFFFF; }

/* Block plugins in the sidebar look like the other cards */
.jp-theme .jp-sidebar .pkp_block { padding: 18px; margin: 0; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); font-size: 14px; line-height: 1.5; }
.jp-theme .jp-sidebar .pkp_block .title { display: block; margin: 0 0 12px; padding: 0; font-family: var(--jp-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--jp-muted); }
.jp-theme .jp-sidebar .pkp_block .content { padding: 0; font-size: 14px; }
.jp-theme .jp-sidebar .pkp_block .content ul { margin: 0; padding: 0; }
.jp-theme .jp-sidebar .pkp_block .content li { padding: 4px 0; }

/* ---------- Archive ---------- */
.jp-yeargroup { display: flex; flex-direction: column; gap: 18px; }
.jp-yeargroup__head { display: flex; align-items: center; gap: 14px; }
.jp-theme .jp-yeargroup__head .jp-h2 { font-size: 30px; }
.jp-yeargroup__rule { flex: 1; height: 1px; background: var(--jp-line-2); }
.jp-yeargroup__head .jp-muted { white-space: nowrap; }
.jp-theme .jp-issuegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.jp-theme .jp-issuegrid > li { display: flex; margin: 0; padding: 0; border: 0; }
.jp-theme .jp-issuecard { flex: 1; display: flex; flex-direction: column; padding: 0; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); overflow: hidden; color: var(--jp-ink); text-decoration: none; transition: border-color .15s ease; }
.jp-theme .jp-issuecard:hover { border-color: var(--jp-primary); color: var(--jp-ink); }
.jp-issuecard__media { position: relative; display: flex; justify-content: center; padding: 24px 0; background: var(--jp-tint-2); }
.jp-issuecard__flag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--jp-accent); color: var(--jp-ink); font-size: 11.5px; font-weight: 700; }
.jp-issuecard__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.jp-issuecard__title { font-family: var(--jp-serif); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--jp-deep); }
.jp-issuecard__more { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--jp-primary); }
.jp-theme .jp-issuegrid > .jp-upcoming { flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; border: 1.5px dashed #C9D6C8; background: #FAFBF8; }
.jp-upcoming__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--jp-sand); color: var(--jp-sand-ink); display: flex; align-items: center; justify-content: center; }
.jp-upcoming__title { font-family: var(--jp-serif); font-weight: 700; font-size: 18px; color: var(--jp-deep); }
.jp-upcoming .jp-more { margin-top: auto; padding-top: 6px; font-size: 13px; white-space: normal; }
.jp-schedule { padding: 24px; gap: 16px; }
.jp-schedule__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.jp-schedule__list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 14px; background: var(--jp-tint); }
.jp-schedule__badge { min-width: 48px; height: 48px; padding: 0 6px; flex: none; border-radius: 12px; background: var(--jp-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--jp-serif); font-weight: 700; font-size: 16px; }
.jp-schedule__text { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Article page ---------- */
.jp-theme .jp-article-title { max-width: 920px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; }
.jp-article-subtitle { max-width: 920px; margin: 0; font-family: var(--jp-serif); font-size: 20px; font-weight: 600; color: var(--jp-ink-3); }
.jp-authors { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.jp-authors li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.jp-authors sup, .jp-affiliations sup { font-weight: 600; color: var(--jp-muted); }
.jp-authors__corr { padding: 1px 8px; border-radius: 999px; background: var(--jp-tint-2); color: var(--jp-primary); font-size: 11.5px; font-weight: 700; }
.jp-affiliations { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 13px; color: var(--jp-muted); }
.jp-article-doi { margin: 0; font-size: 14px; }
.jp-theme .jp-article-doi a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

.jp-article__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.jp-theme .jp-article .main_entry { flex: 999 1 600px; float: none; width: auto; min-width: 0; padding: 0; margin: 0; border: 0; }
.jp-theme .jp-article .entry_details { flex: 1 1 300px; float: none; width: auto; min-width: 0; padding: 0; margin: 0; border: 0; display: flex; flex-direction: column; gap: 16px; }
.jp-theme .jp-article .main_entry .item { padding: 0; width: auto; float: none; }
.jp-theme .jp-article .main_entry .item::after, .jp-theme .jp-article .entry_details .item::after { display: none; }
.jp-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--jp-line); border-radius: 16px; background: #FFFFFF; overflow: hidden; }
.jp-history__step { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-left: 1px solid var(--jp-line); }
.jp-history__step:first-child { border-left: 0; }
.jp-history__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--jp-muted); }
.jp-history__label::before { content: ''; width: 10px; height: 10px; border-radius: 999px; background: #B8C4BA; }
.jp-history__step--revised .jp-history__label::before { background: var(--jp-lime); }
.jp-history__step--accepted .jp-history__label::before { background: var(--jp-accent); }
.jp-history__step--published .jp-history__label::before { background: var(--jp-primary); }
.jp-citebox { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 18px 20px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--jp-line); }
.jp-citebox__text { flex: 1 1 420px; min-width: 0; font-size: 14px; color: var(--jp-ink-2); overflow-wrap: anywhere; }
.jp-citebox__text p, .jp-citebox__text .csl-entry { margin: 0; }
.jp-citedownloads { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 13px; }
.jp-theme .jp-citedownloads a { font-weight: 700; text-decoration: none; }
[data-jp-cite][aria-busy="true"] .jp-citebox__text { opacity: .5; }
.jp-theme .jp-refs { padding-left: 22px; list-style: decimal; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--jp-ink-3); overflow-wrap: anywhere; }
.jp-refs li { padding-left: 4px; }
[data-jp-refs] .jp-btn-mini { align-self: flex-start; }
.jp-bios { display: flex; flex-direction: column; gap: 14px; }

.jp-theme .jp-bigdownloads { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.jp-theme .jp-bigdownloads li { margin: 0; padding: 0; }
.jp-theme .jp-bigdownloads .obj_galley_link { width: 100%; justify-content: center; min-height: 54px; border: 0; border-radius: 14px; background: var(--jp-primary); color: #FFFFFF; font-size: 15px; }
.jp-theme .jp-bigdownloads .obj_galley_link.pdf { background: var(--jp-pdf-strong); color: #FFFFFF; }
.jp-theme .jp-bigdownloads .obj_galley_link:hover { color: #FFFFFF; }
.jp-statcard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jp-statcard .jp-muted { display: block; font-size: 12px; }
.jp-statcard strong { font-family: var(--jp-serif); font-size: 24px; color: var(--jp-deep); }
.jp-bars { grid-column: 1 / -1; height: 48px; display: flex; align-items: flex-end; gap: 4px; }
.jp-bars span { flex: 1; border-radius: 3px 3px 0 0; background: var(--jp-primary); opacity: .75; }
.jp-statcard__note { grid-column: 1 / -1; }
.jp-theme .jp-issuelink { flex-direction: row; align-items: center; gap: 14px; padding: 16px; color: var(--jp-ink); text-decoration: none; }
.jp-theme .jp-issuelink:hover { border-color: var(--jp-primary); color: var(--jp-ink); }
.jp-issuelink__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jp-issuelink__text .jp-muted { font-size: 12px; }
.jp-issuelink__text .jp-issuecard__more { margin-top: 0; }
.jp-datalist { display: block; padding: 6px 18px; }
.jp-datalist > div { padding: 12px 0; border-bottom: 1px solid var(--jp-line-soft); }
.jp-datalist > div:last-child { border-bottom: 0; }
.jp-datalist dt { font-size: 12px; font-weight: 400; color: var(--jp-muted); }
.jp-datalist dd { margin-top: 2px; font-weight: 700; overflow-wrap: anywhere; }
.jp-datalist dd.jp-license { margin-top: 6px; font-weight: 400; font-size: 12.5px; }
.jp-datalist .jp-license__badge { padding: 4px 8px; border-radius: 7px; font-size: 11px; }
.jp-artlinks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.jp-related { display: flex; flex-direction: column; gap: 12px; }
.jp-theme .jp-related a { font-family: var(--jp-serif); font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--jp-deep); text-decoration: none; }
.jp-theme .jp-related a:hover { color: var(--jp-primary); text-decoration: underline; }
/* The citation block is already shown in the main column */
.jp-plugin-details .item.citation { display: none; }
.jp-plugin-details:empty { display: none; }
.jp-plugin-details > .item { padding: 18px; margin: 0 0 16px; border-radius: 18px; border: 1px solid var(--jp-line); }

/* ---------- Text from the dashboard ---------- */
.jp-prose { color: var(--jp-ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.jp-prose > *:first-child { margin-top: 0; }
.jp-prose > *:last-child { margin-bottom: 0; }
.jp-prose--sm { font-size: 14px; }
.jp-theme .jp-prose h2 { margin: 36px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--jp-deep); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--jp-deep); scroll-margin-top: 72px; }
.jp-theme .jp-prose > h2:first-child { margin-top: 0; }
.jp-theme .jp-prose h3 { margin: 24px 0 8px; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--jp-deep); }
.jp-theme .jp-prose h4 { margin: 18px 0 6px; font-family: var(--jp-sans); font-weight: 700; font-size: 16px; }
.jp-prose p { margin: 0 0 14px; }
.jp-theme .jp-prose ul, .jp-theme .jp-prose ol { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding-left: 22px; }
.jp-theme .jp-prose ul { list-style: disc; }
.jp-theme .jp-prose ol { list-style: decimal; }
.jp-prose blockquote { margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--jp-tint); border-left: 3px solid var(--jp-primary); }
.jp-theme .jp-prose table { width: 100%; margin: 0 0 18px; border-collapse: collapse; border: 1px solid var(--jp-line); font-size: 14px; }
.jp-theme .jp-prose th { padding: 12px 16px; background: var(--jp-tint); font-weight: 700; text-align: left; border: 0; border-bottom: 1px solid var(--jp-line); }
.jp-theme .jp-prose td { padding: 12px 16px; border: 0; border-top: 1px solid var(--jp-line); vertical-align: top; }
.jp-prose img { border-radius: 12px; }

.jp-tocpage { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.jp-tocpage__aside { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 64px; }
.jp-tocpage__content { flex: 999 1 600px; min-width: 0; }
.jp-toc-nav { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); }
.jp-toc-nav ol { display: flex; flex-direction: column; gap: 2px; }
.jp-theme .jp-toc-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--jp-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.jp-theme .jp-toc-nav a:hover { background: var(--jp-tint); color: var(--jp-primary); }
.jp-notice { padding: 14px 18px; border-radius: 14px; background: var(--jp-tint); border: 1px solid var(--jp-line); font-size: 14px; }

/* Checklist that readers can tick */
.jp-theme .is-interactive ul, .jp-theme .is-interactive ol { list-style: none; padding: 0; gap: 8px; }
.is-interactive li label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--jp-line); background: #FFFFFF; cursor: pointer; }
.is-interactive li label p { margin: 0; }
.is-interactive li input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--jp-primary); }
.is-interactive li:has(input:checked) label { background: var(--jp-tint); border-color: var(--jp-line-2); }

/* ---------- Editorial board ---------- */
.jp-theme .jp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.jp-theme .jp-people > li { display: flex; margin: 0; padding: 0; }
.jp-person { flex: 1; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); }
.jp-person__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jp-person__name { font-family: var(--jp-serif); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--jp-deep); }
.jp-person__affil { font-size: 13px; color: var(--jp-ink-3); }
.jp-person__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jp-theme .jp-person__links a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--jp-line-2); font-size: 12px; font-weight: 700; text-decoration: none; }
.jp-person__links .jp-orcid { width: 12px; height: 12px; font-size: 8px; line-height: 12px; }
.jp-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 18px; background: var(--jp-primary); color: #FFFFFF; }
.jp-banner__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jp-banner__copy strong { font-family: var(--jp-serif); font-size: 20px; }
.jp-banner__copy span { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ---------- Announcements ---------- */
.jp-newsfeature { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 22px; background: var(--jp-primary); color: #FFFFFF; }
.jp-theme .jp-newsfeature h2 { font-weight: 700; font-size: 28px; line-height: 1.25; }
.jp-theme .jp-newsfeature h2 a { color: #FFFFFF; text-decoration: none; }
.jp-newsfeature__text { font-size: 15px; color: rgba(255, 255, 255, .86); }
.jp-newsfeature__text p { margin: 0; }
.jp-newsfeature__dates { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.jp-newsfeature__dates dt { font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .75); }
.jp-newsfeature__dates dd { font-weight: 700; }
.jp-theme .jp-newslist { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.jp-theme .jp-newslist > li { margin: 0; padding: 0; border: 0; }
.jp-newsitem { display: flex; align-items: flex-start; gap: 18px; padding: 20px 22px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--jp-line); }
.jp-newsitem__date { width: 60px; flex: none; padding: 8px 0; border-radius: 12px; background: var(--jp-tint); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.jp-newsitem__date strong { font-family: var(--jp-serif); font-size: 22px; color: var(--jp-deep); }
.jp-newsitem__date span { font-size: 11.5px; font-weight: 700; color: var(--jp-muted); text-transform: uppercase; }
.jp-newsitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.jp-newsitem__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jp-theme .jp-newsitem__title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.jp-theme .jp-newsitem__title a { color: var(--jp-deep); text-decoration: none; }
.jp-theme .jp-newsitem__title a:hover { color: var(--jp-primary); text-decoration: underline; }
.jp-newsitem .summary { padding: 0; font-size: 14px; }
.jp-newsitem .summary p { margin: 0; }
.jp-newsitem .jp-more { font-size: 13px; }

/* ---------- Footer ---------- */
.jp-theme .jp-footer { width: 100%; max-width: none; margin: 0; background: var(--jp-deep); color: rgba(255, 255, 255, .82); font-size: 14px; }
.jp-footer__inner { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.jp-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.jp-footer__col { display: flex; flex-direction: column; gap: 8px; }
.jp-footer__name { font-family: var(--jp-serif); font-weight: 700; font-size: 19px; line-height: 1.25; color: #FFFFFF; }
.jp-footer__title { font-weight: 700; color: #FFFFFF; }
.jp-theme .jp-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.jp-theme .jp-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.jp-footer__menu { display: flex; flex-direction: column; gap: 8px; }
.jp-footer__custom { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.jp-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; color: rgba(255, 255, 255, .7); }

/* ---------- Pages kept from the default theme (login, search…) ---------- */
.jp-theme .pkp_structure_main > .page > h1, .jp-theme .pkp_structure_main > div > h1:not(.jp-h1) { margin: 12px 0 20px; font-weight: 700; font-size: 34px; line-height: 1.2; color: var(--jp-deep); }
.jp-theme .cmp_form input[type="text"], .jp-theme .cmp_form input[type="email"], .jp-theme .cmp_form input[type="password"], .jp-theme .cmp_form select { border: 1px solid var(--jp-line-2); border-radius: 10px; }
.jp-theme .cmp_form .buttons button, .jp-theme .cmp_form button.submit { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--jp-primary); color: #FFFFFF; font-weight: 700; box-shadow: none; text-shadow: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
	.jp-nav__inner { position: relative; }
	.jp-nav__toggle { display: inline-flex; }
	.jp-theme #navigationPrimary { display: none; order: 3; width: 100%; flex-direction: column; padding-bottom: 8px; }
	.jp-nav.is-open #navigationPrimary { display: flex; }
	.jp-theme .pkp_navigation_primary > li > a { padding: 12px 8px; }
	.jp-theme .pkp_navigation_primary > li > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--jp-accent); }
	.jp-theme .pkp_navigation_primary ul { position: static; display: block; min-width: 0; padding: 0 0 4px 12px; background: none; box-shadow: none; }
	.jp-theme .pkp_navigation_primary ul a { color: rgba(255, 255, 255, .9); padding: 8px; }
	.jp-theme .pkp_navigation_primary ul a:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
	.jp-tocpage__aside { position: static; flex-basis: 100%; }
}

@media (max-width: 760px) {
	:root { --jp-gutter: 16px; }
	.jp-brandbar__inner { padding-top: 16px; padding-bottom: 16px; gap: 14px; }
	.jp-brand__mark { width: 48px; height: 48px; }
	.jp-search, .jp-pagehead .jp-search { width: 100%; }
	.jp-hero__inner { padding-top: 36px; padding-bottom: 36px; gap: 32px; }
	.jp-cover--lg { width: 210px; }
	.jp-cover--lg .jp-cover__name { font-size: 17px; }
	.jp-issuehead { gap: 24px; }
	.jp-theme .jp-art { padding: 18px 16px; gap: 12px; }
	.jp-art__num { width: 32px; height: 32px; font-size: 13px; }
	.jp-yeargroup__head { flex-wrap: wrap; gap: 8px 12px; }
	.jp-yeargroup__rule { display: none; }
	.jp-newsitem { padding: 18px 16px; gap: 14px; }
	.jp-newsitem__date { width: 52px; }
	.jp-newsfeature { padding: 22px; }
	.jp-theme .jp-newsfeature h2 { font-size: 23px; }
	.jp-history__step { border-left: 0; border-top: 1px solid var(--jp-line); }
	.jp-history__step:first-child { border-top: 0; }
	.jp-theme .jp-prose table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.jp-theme * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Default theme rules that need undoing ---------- */
.jp-theme .jp-topbar__user, .jp-theme .jp-topbar #navigationUserWrapper { flex: none; display: flex; align-items: center; }
.jp-theme .jp-topbar .pkp_navigation_user { width: auto; }
.jp-theme .jp-toc .sections, .jp-theme .jp-toc .section { margin: 0; padding: 0; }
.jp-theme .jp-toc .section::before, .jp-theme .jp-toc .section::after, .jp-theme .jp-toc .sections::before { display: none; }
.jp-theme .jp-toc .section > h2, .jp-theme .jp-toc .section > h3, .jp-theme .jp-toc .jp-section__head > h2 { position: static; display: block; margin: 0; padding: 0; background: none; line-height: 1.25; }
.jp-theme .jp-toc .section > h3 { letter-spacing: .1em; }
.jp-theme .jp-artlist > li { margin: 0; padding: 0; }
.jp-theme .jp-art .meta { position: static; display: flex; padding: 0; line-height: 1.5; }
.jp-theme .jp-art .pages { position: static; line-height: inherit; }
.jp-theme .jp-art__title { position: static; }
.jp-theme .jp-issuegrid, .jp-theme .issues_archive { margin: 0; padding: 0; border: 0; }
.jp-theme .obj_issue_summary { padding: 0; }
.jp-theme .obj_issue_summary::after { display: none; }
.jp-theme .jp-newsitem .date { display: inline; padding: 0; margin: 0; font-size: 12.5px; color: var(--jp-muted); }
.jp-theme .jp-newsitem .date::before { display: none; }
.jp-theme .jp-newsitem { margin: 0; }
.jp-theme .jp-toc .jp-artlist { margin: 0; }
.jp-theme #navigationUserWrapper, .jp-theme .jp-topbar .pkp_navigation_user { margin: 0; padding: 0; border: 0; }
.jp-theme .jp-topbar .pkp_navigation_user > li { margin: 0; padding: 0; }

/* Article numbers only mean something in an issue's table of contents, not in search results or category pages */
.jp-theme .jp-art__num { display: none; }
.jp-theme .jp-artlist .jp-art__num { display: flex; }

/* The default theme draws a search icon inside this button and leaves room for it with padding */
.jp-theme .page_search .submit button { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0 22px; }
.jp-theme .page_search .submit button::before, .jp-theme .page_search .submit button::after { display: none; }

/* Person cards written in the editorial team text */
.jp-theme .jp-prose .jp-people { display: grid; margin: 0 0 24px; padding: 0; list-style: none; }
.jp-theme .jp-prose .jp-person__links { margin-top: 6px; }

@media (max-width: 760px) {
	.jp-theme .jp-prose thead, .jp-theme .jp-prose tbody { display: table; width: 100%; }
}

/* Keep table labels whole: "anywhere" from .jp-prose would let columns shrink mid-word */
.jp-theme .jp-prose th, .jp-theme .jp-prose td { overflow-wrap: break-word; }

/* KONPEMAS logo in the header and on the drawn cover */
.jp-theme .jp-brand__wordmark { flex: none; width: auto; height: 52px; }
/* The wordmark is wide, so the journal name beside it wraps into a block like the full logo */
.jp-brand__wordmark + .jp-brand__text { max-width: 320px; padding-left: 16px; border-left: 2px solid var(--jp-accent); }
.jp-brand__wordmark + .jp-brand__text .jp-brand__name { font-size: 22px; }
.jp-theme .jp-cover__logo { display: block; width: 62%; height: auto; }
.jp-cover--md .jp-cover__logo, .jp-cover--sm .jp-cover__logo { width: 58%; }
@media (max-width: 760px) {
	.jp-theme .jp-brand:has(.jp-brand__wordmark) { flex-wrap: wrap; gap: 10px; }
	.jp-theme .jp-brand__wordmark { height: 40px; }
	.jp-brand__wordmark + .jp-brand__text { flex-basis: 100%; max-width: none; padding-left: 0; border-left: 0; }
	.jp-brand__wordmark + .jp-brand__text .jp-brand__name { font-size: 19px; }
}

/* Peer reviewers page */
.jp-reviewers-tools { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.jp-theme .jp-reviewers-tools input { flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--jp-line-2); border-radius: 10px; background: #FAFBF8; font: inherit; font-size: 14px; color: var(--jp-ink); }
.jp-theme .jp-reviewers-tools input:focus { border-color: var(--jp-primary); outline: 0; }
.jp-theme h2.jp-person__name { margin: 0; }
.jp-people > li, .jp-person__body { min-width: 0; }
.jp-person .jp-pilltag { max-width: 100%; white-space: normal; }
