/*
 * The journal home page (templates/frontend/pages/indexJournal.tpl).
 * Loaded only on the home page, by the theme plugin's injectHomePageData(). Everything is scoped under .jhp so it
 * cannot change any other page. The theme's global CSS forces heading fonts/colours, list
 * indents, button and table styles with !important, which is why some rules here use it too.
 *
 * Look: a white page, charcoal text, one leaf-green accent and a small touch of ochre.
 * Type: Source Serif 4 for titles, Source Sans 3 for text (loaded for every page by the theme plugin).
 */

/* On this page the theme's grey backdrop and white 1200px card are dropped: the page itself is white. */
body:has(.jhp),
.pkp_structure_content:has(.jhp) {
	background: #fff !important;
}

.pkp_structure_main:has(.jhp) {
	max-width: 1280px !important;
	margin: 0 auto !important;
	padding: 1.5rem 1.5rem 3rem !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.jhp {
	--ink: #1c2a23;
	--text: #35453d;
	--muted: #62736a;
	--line: #dde5df;
	--paper: #f5f8f5;
	--leaf: #1f6b45;
	--leaf-deep: #17523a;
	--leaf-soft: #e8f2eb;
	--ochre: #b0812a;
	--ochre-ink: #7a5712;
	--ochre-soft: #fbf3de;
	--serif: 'Source Serif 4', 'Merriweather', Georgia, 'Times New Roman', serif;
	--sans: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
}

.jhp *,
.jhp *::before,
.jhp *::after {
	box-sizing: border-box;
}

.jhp p,
.jhp dl,
.jhp dd,
.jhp dt {
	margin: 0;
	padding: 0;
}

.jhp ul,
.jhp ol {
	list-style: none;
	margin: 0;
	padding: 0 !important;
}

.jhp h2,
.jhp h3,
.jhp h4 {
	margin: 0;
	font-family: var(--serif) !important;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.005em;
	text-transform: none;
	color: var(--ink) !important;
}

.jhp a {
	color: var(--leaf-deep);
	text-decoration: none;
}

.jhp a:hover {
	color: var(--leaf-deep);
	text-decoration: underline;
}

.jhp a:focus-visible,
.jhp button:focus-visible {
	outline: 3px solid var(--ochre);
	outline-offset: 2px;
	border-radius: 4px;
}

.jhp img {
	max-width: 100%;
}

.jhp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Shared pieces ---------- */

.jhp-section {
	margin-top: 76px;
}

.jhp-head {
	max-width: 48rem;
	margin-bottom: 26px;
}

.jhp .jhp-head h2 {
	font-size: 2rem;
}

.jhp-head p {
	margin-top: 8px;
	color: var(--muted);
	font-size: 1.06rem;
}

.jhp-head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	max-width: none;
}

.jhp-head-row > div {
	max-width: 48rem;
}

.jhp-source {
	color: var(--muted);
	font-size: 0.92em;
	white-space: nowrap;
}

.jhp-source-block {
	margin-top: 12px !important;
}

.jhp a.jhp-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--leaf-deep);
}

.jhp a.jhp-more i {
	font-size: 0.78em;
	transition: transform 0.15s ease;
}

.jhp a.jhp-more:hover i {
	transform: translateX(3px);
}

.jhp-dot {
	display: inline-block;
	flex: none;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--leaf);
}

.jhp-card-label {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ochre-ink);
}

/* Buttons */

.jhp a.jhp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jhp a.jhp-btn-solid {
	background: var(--leaf);
	color: #fff;
}

.jhp a.jhp-btn-solid:hover {
	background: var(--leaf-deep);
	color: #fff;
}

.jhp a.jhp-btn-line {
	border-color: #b9c8be;
	background: #fff;
	color: var(--ink);
}

.jhp a.jhp-btn-line:hover {
	border-color: var(--leaf);
	color: var(--leaf-deep);
}

.jhp a.jhp-btn-wide {
	width: 100%;
}

.jhp-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 14px;
}

/* ---------- First screen ---------- */

.jhp-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 8px 48px;
	align-items: center;
	padding: 20px 0 0;
}

/* Every item has a rule on its left; the clip hides the rule of whichever item starts a line. */
.jhp .jhp-hero-meta {
	display: flex;
	flex-wrap: wrap;
	row-gap: 6px;
	margin-left: -15px;
	clip-path: inset(0 0 0 15px);
	font-size: 1rem;
	font-weight: 600;
	color: var(--leaf);
}

.jhp-hero-meta span {
	padding: 0 14px;
	border-left: 1px solid #b9c8be;
}

.jhp h2.jhp-title {
	margin-top: 16px;
	font-size: clamp(2.1rem, 4.2vw, 3.6rem);
	line-height: 1.07;
	letter-spacing: -0.018em;
	text-wrap: balance;
}

.jhp-lead {
	max-width: 36rem;
	margin-top: 20px !important;
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--text);
}

.jhp-hero .jhp-actions {
	margin-top: 26px;
}

.jhp-hero-index {
	margin-top: 30px;
}

.jhp-hero-index > p:first-child {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--muted);
}

.jhp-hero-index ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px !important;
}

.jhp-hero-index li {
	margin: 0 !important;
}

.jhp .jhp-hero-index li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid #c6d2ca;
	border-radius: 999px;
	background: #fff;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.jhp .jhp-hero-index li a:hover {
	border-color: var(--leaf);
	background: var(--paper);
}

.jhp .jhp-hero-index img {
	width: auto !important;
	height: 18px !important;
}

.jhp-hero-platform {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	margin-top: 14px !important;
	font-size: 0.95rem;
	color: var(--muted);
}

.jhp-hero-platform span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.jhp-hero-platform i {
	font-size: 0.95rem;
	color: #94a39a;
}

.jhp .jhp-hero-platform a {
	display: inline !important;
	min-height: 0 !important;
	font-weight: 600;
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #b6c4ba;
}

/* The drawing: a plant whose stem becomes a flavonoid */

.jhp-hero-art {
	justify-self: center;
	width: 100%;
	max-width: 470px;
	background: radial-gradient(closest-side at 63% 40%, var(--leaf-soft) 0, var(--leaf-soft) 72%, transparent 73%);
}

.jhp-plant {
	display: block;
	width: 100%;
	height: auto;
}

.jhp-plant * {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jhp-plant-leaves path {
	fill: #f6faf6;
	stroke: var(--leaf);
	stroke-width: 1.5;
}

.jhp-plant-veins path {
	stroke: var(--leaf);
	stroke-width: 0.8;
	opacity: 0.55;
}

.jhp-plant-lines path,
.jhp-plant-lines line {
	stroke: var(--leaf);
	stroke-width: 1.3;
}

.jhp-plant-stem {
	stroke-width: 1.8;
}

.jhp-plant-stop-mol {
	stop-color: #26332c;
}

.jhp-plant-stop-leaf {
	stop-color: #1f6b45;
}

.jhp-plant-rays line {
	stroke: var(--leaf);
	stroke-width: 1.1;
}

.jhp-plant-florets circle {
	fill: var(--ochre-soft);
	stroke: var(--ochre);
	stroke-width: 1.3;
}

.jhp-plant-mol line {
	stroke: #26332c;
	stroke-width: 1.8;
}

.jhp-plant-atoms text {
	fill: #26332c;
	stroke: none;
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 600;
}

/* Four figures under the first screen */

.jhp-stats {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: 28px !important;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.jhp-stats li {
	padding: 22px 24px 22px 0;
}

.jhp-stats li + li {
	padding-left: 24px;
	border-left: 1px solid var(--line);
}

.jhp-stats b {
	display: block;
	font-family: var(--serif);
	font-size: 2.5rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: lining-nums;
	color: var(--leaf-deep);
}

.jhp-stats b small {
	font-size: 0.62em;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

.jhp-stats span {
	display: block;
	max-width: 14rem;
	margin-top: 8px;
	font-size: 0.98rem;
	line-height: 1.4;
	color: var(--muted);
}

/* ---------- Cited in ---------- */

.jhp-cited {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 24px 48px;
	margin-top: 56px;
	padding: 32px 36px;
	border-radius: 16px;
	background: var(--ochre-soft);
}

.jhp .jhp-cited-head h2 {
	font-size: 2rem;
}

.jhp-cited-head p {
	margin-top: 8px;
	color: var(--ochre-ink);
	line-height: 1.5;
}

.jhp-cited-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 40px;
}

.jhp-cited-list li {
	padding-left: 20px;
	border-left: 3px solid var(--ochre);
}

.jhp .jhp-cited-list h3 {
	font-size: 1.5rem;
	line-height: 1.2;
}

.jhp-cited-pub {
	margin-top: 2px;
	font-weight: 600;
	color: var(--ochre-ink);
}

.jhp-cited-ours {
	margin: 12px 0 10px !important;
	line-height: 1.45;
}

.jhp-cited-ours small {
	display: block;
	font-size: 0.88rem;
	color: var(--ochre-ink);
}

.jhp .jhp-cited-ours a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #cdb682;
}

.jhp .jhp-cited-ours a:hover {
	text-decoration-color: var(--ink);
}

/* ---------- Latest articles and the side column ---------- */

.jhp-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	margin-top: 64px;
}

.jhp-art {
	padding: 28px 30px 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.jhp-art + .jhp-art {
	margin-top: 20px;
}

.jhp .jhp-art h3 {
	font-size: 1.55rem;
	line-height: 1.26;
	text-wrap: pretty;
}

.jhp .jhp-art h3 a {
	color: var(--ink);
}

.jhp .jhp-art h3 a:hover {
	color: var(--leaf-deep);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.jhp-art-authors {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-top: 12px !important;
	font-size: 1.04rem;
}

.jhp-art-authors i {
	flex: none;
	font-size: 0.9rem;
	color: #94a39a;
}

.jhp-art-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 44px;
	margin-top: 20px !important;
	padding: 16px 0 !important;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.jhp-art-meta dt {
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--muted);
}

.jhp-art-meta dd {
	margin-top: 2px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
	overflow-wrap: anywhere;
}

.jhp .jhp-art-meta a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #b6c4ba;
}

.jhp .jhp-art-meta a:hover {
	color: var(--leaf-deep);
	text-decoration-color: currentColor;
}

.jhp-art-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.jhp .jhp-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 1.5px solid #c6d2ca;
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jhp .jhp-act:hover {
	border-color: var(--leaf);
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
}

.jhp .jhp-act i {
	font-size: 0.9em;
}

.jhp .jhp-act img {
	width: 18px !important;
	height: 18px !important;
}

.jhp .jhp-act-main {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}

.jhp .jhp-act-main:hover {
	border-color: var(--leaf-deep);
	background: var(--leaf-deep);
	color: #fff;
}

/* The theme restyles every <button> with !important, so the two buttons need it as well. */
.jhp button.jhp-act {
	min-height: 44px !important;
	padding: 0 16px !important;
	border: 1.5px solid #c6d2ca !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: var(--ink) !important;
	font-family: var(--sans) !important;
	font-size: 0.98rem !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

.jhp button.jhp-act:hover {
	border-color: var(--leaf) !important;
	background: var(--paper) !important;
}

.jhp button.jhp-act-cite,
.jhp button.jhp-act-cite:hover {
	border-color: transparent !important;
	background: var(--leaf-soft) !important;
	color: var(--leaf-deep) !important;
}

.jhp button.jhp-act-cite:hover,
.jhp button.jhp-act-cite[aria-expanded='true'] {
	border-color: var(--leaf) !important;
}

.jhp-art-cite {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px dashed #b6c4ba;
	border-radius: 10px;
	background: var(--paper);
	font-size: 0.98rem;
	line-height: 1.5;
}

.jhp-art-cite[hidden] {
	display: none;
}

.jhp-art-cite p {
	flex: 1;
	overflow-wrap: anywhere;
}

.jhp-art-cite .jhp-act {
	flex: none;
}

.jhp-empty {
	padding: 28px 30px !important;
	border: 1px dashed #b6c4ba;
	border-radius: 16px;
	background: #fff;
}

/* Side column */

.jhp-card {
	padding: 22px 22px 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.jhp-card + .jhp-card {
	margin-top: 20px;
}

.jhp .jhp-card h3 {
	font-size: 1.3rem;
}

.jhp-card .jhp-more {
	margin-top: 12px;
}

.jhp-pairs {
	margin: 12px 0 0 !important;
	border-bottom: 1px solid var(--line);
}

.jhp-pairs > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-top: 1px solid var(--line);
	font-size: 0.98rem;
	line-height: 1.35;
}

.jhp-pairs dt {
	flex: none;
	color: var(--muted);
}

.jhp-pairs dd {
	font-weight: 700;
	text-align: right;
	color: var(--ink);
}

.jhp .jhp-pairs a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #b6c4ba;
}

.jhp-facts {
	border-top: 4px solid var(--leaf);
}

.jhp-facts .jhp-pairs {
	border-bottom: 0;
}

.jhp-current {
	padding: 0;
	overflow: hidden;
}

.jhp-current > div {
	padding: 18px 22px 20px;
}

.jhp a.jhp-current-cover {
	display: flex;
	justify-content: center;
	padding: 26px 22px 22px;
	background: var(--paper);
}

.jhp-current-cover img {
	display: block;
	width: 168px;
	height: auto;
	border-radius: 3px;
	box-shadow: 0 16px 28px -16px rgba(28, 42, 35, 0.6);
}

.jhp .jhp-current h3 {
	margin: 2px 0 4px;
	font-size: 1.45rem;
}

.jhp-current p:not(.jhp-card-label) {
	color: var(--muted);
	line-height: 1.45;
}

.jhp-call-state {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 6px 0 10px !important;
	font-weight: 700;
	color: var(--leaf-deep);
}

.jhp-call .jhp-pairs {
	margin: 14px 0 18px !important;
}

.jhp-call-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	margin-top: 14px !important;
	font-size: 0.98rem;
	font-weight: 600;
}

.jhp-record-volume {
	margin: 10px 0 6px !important;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--muted);
}

.jhp-record-list {
	border-bottom: 1px solid var(--line);
}

.jhp .jhp-record-list a {
	display: grid;
	grid-template-columns: 5.6rem minmax(0, 1fr) auto;
	gap: 10px;
	align-items: baseline;
	padding: 9px 6px;
	border-top: 1px solid var(--line);
	font-size: 0.96rem;
	line-height: 1.3;
	color: var(--text);
	text-decoration: none;
}

.jhp .jhp-record-list a:hover {
	background: var(--paper);
}

.jhp-record-list span {
	word-break: normal;
	overflow-wrap: normal;
}

.jhp-record-list b {
	font-weight: 700;
	color: var(--ink);
}

.jhp-record-list span:last-child {
	color: var(--muted);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.jhp-record-next b,
.jhp-record-next span:last-child {
	color: var(--leaf-deep);
}

/* ---------- Where our articles are found ---------- */

.jhp-found {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--line);
}

.jhp-found li {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 22px 20px 20px;
	background: #fff;
}

.jhp .jhp-found h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 28px;
	font-size: 1.2rem;
}

.jhp .jhp-found h3 img {
	width: auto !important;
	height: 24px !important;
}

.jhp-found p {
	flex: 1;
	margin: 10px 0 14px;
	font-size: 0.98rem;
	line-height: 1.45;
	color: var(--muted);
}

.jhp .jhp-found a.jhp-more {
	display: inline;
	font-size: 0.95rem;
	line-height: 1.35;
}

.jhp .jhp-found a.jhp-more i {
	margin-left: 3px;
}

.jhp-found-next {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	margin-top: 16px !important;
	font-size: 0.98rem;
	color: var(--muted);
}

.jhp-found-next b {
	margin-right: 8px;
	font-weight: 700;
	color: var(--ink);
}

/* ---------- Editorial board ---------- */

.jhp-people {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.jhp-people li {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
}

/* The theme's phone CSS sets every image to height: auto, so fixed image sizes on this page carry !important. */
.jhp .jhp-people img,
.jhp-person-blank {
	display: block;
	width: 60px !important;
	height: 60px !important;
	border-radius: 50%;
	object-fit: cover;
}

.jhp-person-blank {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--leaf-soft);
	color: var(--leaf);
}

.jhp .jhp-people h3 {
	font-size: 1.08rem;
	line-height: 1.25;
}

.jhp-people p {
	margin-top: 3px;
	font-size: 0.92rem;
	line-height: 1.4;
	color: var(--muted);
}

.jhp-people p.jhp-person-h {
	font-weight: 700;
	color: var(--ink);
}

/* The Editor-in-Chief takes two places in the grid */
.jhp-people li.jhp-chief {
	grid-column: span 2;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 20px 24px;
	border-left: 4px solid var(--leaf);
}

.jhp .jhp-people li.jhp-chief img {
	width: 104px !important;
	height: 104px !important;
	border-radius: 14px;
}

.jhp .jhp-people li.jhp-chief h3 {
	margin: 2px 0 4px;
	font-size: 1.5rem;
}

.jhp-people li.jhp-chief p:not(.jhp-card-label) {
	font-size: 1rem;
}

.jhp a.jhp-orcid {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text);
}

.jhp a.jhp-orcid i {
	color: #a6ce39;
	font-size: 1.05em;
}

/* ---------- Aims and scope ---------- */

.jhp-scope {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 44px;
	align-items: start;
}

.jhp-areas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.jhp-area {
	padding-top: 14px;
	border-top: 4px solid var(--leaf);
}

.jhp-area:nth-child(2) {
	border-top-color: var(--ochre);
}

.jhp .jhp-area h3 {
	margin-bottom: 8px;
	font-size: 1.3rem;
}

.jhp-area li {
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	line-height: 1.35;
}

.jhp-area li:last-child {
	border-bottom: 0;
}

.jhp-types {
	padding: 22px 24px 20px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.jhp .jhp-types h3 {
	margin-bottom: 8px;
	font-size: 1.3rem;
}

.jhp .jhp-types table {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0.98rem;
}

.jhp .jhp-types th,
.jhp .jhp-types td {
	padding: 9px 8px 9px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--line) !important;
	background: transparent !important;
	color: var(--text) !important;
	font-weight: 400;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal !important;
	vertical-align: top;
}

.jhp .jhp-types thead th {
	border-bottom: 2px solid var(--ink) !important;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--muted) !important;
}

.jhp .jhp-types tbody th {
	font-weight: 700;
	color: var(--ink) !important;
}

.jhp-types .jhp-more {
	margin-top: 14px;
}

/* ---------- Peer review and what authors get ---------- */

.jhp-process {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: start;
}

.jhp-steps {
	counter-reset: jhp-step;
}

.jhp-steps li {
	position: relative;
	padding: 0 0 26px 58px;
	counter-increment: jhp-step;
}

.jhp-steps li:last-child {
	padding-bottom: 0;
}

.jhp-steps li::before {
	content: counter(jhp-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1.5px solid var(--leaf);
	border-radius: 50%;
	background: #fff;
	font-family: var(--serif);
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--leaf-deep);
}

.jhp-steps li:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 18px;
	top: 44px;
	bottom: 6px;
	width: 2px;
	background: var(--line);
}

.jhp .jhp-steps h3 {
	padding-top: 6px;
	font-size: 1.2rem;
}

.jhp-steps p {
	margin-top: 4px;
}

.jhp-step-time {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 8px !important;
	padding: 3px 12px !important;
	border-radius: 999px;
	background: var(--ochre-soft);
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ochre-ink);
}

.jhp-step-time i {
	font-size: 0.85em;
}

.jhp-why {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 36px;
	border-top: 1px solid var(--line);
}

.jhp-why li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 14px;
	margin: 0 !important;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
}

.jhp-why i {
	padding-top: 4px;
	font-size: 1.15rem;
	text-align: center;
	color: var(--leaf);
}

.jhp .jhp-why h3 {
	font-size: 1.14rem;
}

.jhp-why p {
	margin-top: 4px;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--muted);
}

/* ---------- Closing block ---------- */

.jhp-close {
	margin-top: 76px;
}

.jhp-close-call {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: 36px 40px;
	border-radius: 16px;
	background: var(--leaf-soft);
}

.jhp .jhp-close h2 {
	font-size: 2rem;
}

.jhp-close-call p {
	margin-top: 8px;
	font-size: 1.08rem;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1180px) {
	.jhp-hero {
		gap: 8px 28px;
	}

	.jhp-main {
		grid-template-columns: minmax(0, 1fr) 310px;
		gap: 28px;
	}

	.jhp-cited {
		grid-template-columns: minmax(0, 1fr);
	}

	.jhp-found {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jhp-people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jhp-process {
		gap: 40px;
	}
}

@media (max-width: 940px) {
	.jhp-hero,
	.jhp-main,
	.jhp-scope,
	.jhp-process {
		grid-template-columns: minmax(0, 1fr);
	}

	.jhp-hero-art {
		max-width: 340px;
	}

	.jhp-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jhp-stats li:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.jhp-stats li:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}

	.jhp-rail {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 20px;
		align-items: start;
	}

	.jhp-card + .jhp-card {
		margin-top: 0;
	}
}

@media (max-width: 640px) {
	.pkp_structure_main:has(.jhp) {
		padding: 0.9rem 0.9rem 2.25rem !important;
	}

	.jhp {
		font-size: 16px;
	}

	.jhp-section,
	.jhp-close {
		margin-top: 54px;
	}

	.jhp .jhp-head h2,
	.jhp .jhp-cited-head h2,
	.jhp .jhp-close h2 {
		font-size: 1.65rem;
	}

	.jhp-hero {
		padding-top: 8px;
	}

	.jhp .jhp-hero-meta {
		margin-left: -11px;
		clip-path: inset(0 0 0 11px);
		font-size: 0.92rem;
	}

	.jhp-hero-meta span {
		padding: 0 10px;
	}

	.jhp h2.jhp-title {
		font-size: 2rem;
	}

	.jhp-lead {
		font-size: 1.08rem;
	}

	.jhp-hero .jhp-actions .jhp-btn,
	.jhp-close .jhp-actions,
	.jhp-close .jhp-actions .jhp-btn {
		width: 100%;
	}

	.jhp-hero-index {
		margin-top: 24px;
	}

	.jhp-hero-platform {
		flex-direction: column;
		gap: 4px;
	}

	.jhp-hero-art {
		max-width: 290px;
		margin-top: 12px;
	}

	.jhp-stats li {
		padding: 16px 12px 16px 0;
	}

	.jhp-stats li + li {
		padding-left: 14px;
	}

	.jhp-stats li:nth-child(3) {
		padding-left: 0;
	}

	.jhp-stats b {
		font-size: 1.9rem;
	}

	.jhp-stats span {
		font-size: 0.92rem;
	}

	.jhp-cited {
		margin-top: 40px;
		padding: 24px 20px;
	}

	.jhp-cited-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.jhp .jhp-cited-list h3 {
		font-size: 1.3rem;
	}

	.jhp-main {
		margin-top: 48px;
	}

	.jhp-art {
		padding: 20px 18px 18px;
		border-radius: 14px;
	}

	.jhp .jhp-art h3 {
		font-size: 1.28rem;
	}

	.jhp-art-meta {
		gap: 12px 28px;
	}

	.jhp-art-meta-doi {
		flex-basis: 100%;
	}

	/* Read article and the Scholar link take a full row; PDF and Cite share one */
	.jhp-art-actions .jhp-act {
		flex: 1 1 calc(50% - 5px);
	}

	.jhp-art-actions .jhp-act-main,
	.jhp-art-actions .jhp-act:last-child {
		flex-basis: 100%;
	}

	.jhp-art-cite {
		flex-direction: column;
	}

	.jhp-art-cite .jhp-act {
		align-self: stretch;
	}

	.jhp-found {
		grid-template-columns: minmax(0, 1fr);
	}

	.jhp-found li {
		padding: 18px;
	}

	.jhp-found p {
		margin: 6px 0 10px;
	}

	.jhp-found-next {
		flex-direction: column;
		gap: 6px;
	}

	.jhp-areas,
	.jhp-people,
	.jhp-why {
		grid-template-columns: minmax(0, 1fr);
	}

	.jhp-people li.jhp-chief {
		grid-column: auto;
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 16px;
		padding: 16px;
	}

	.jhp .jhp-people li.jhp-chief img {
		width: 76px !important;
		height: 76px !important;
	}

	.jhp .jhp-people li.jhp-chief h3 {
		font-size: 1.25rem;
	}

	.jhp-types {
		padding: 18px 16px;
	}

	/* The theme turns tables into stacked blocks on phones; this one is small enough to stay a table. */
	.jhp .jhp-types table {
		display: table !important;
		table-layout: fixed;
	}

	.jhp .jhp-types thead { display: table-header-group !important; }
	.jhp .jhp-types tbody { display: table-row-group !important; }
	.jhp .jhp-types tr { display: table-row !important; }

	.jhp .jhp-types th,
	.jhp .jhp-types td {
		display: table-cell !important;
		padding: 8px 6px 8px 0 !important;
		font-size: 0.92rem;
	}

	.jhp .jhp-types th:first-child {
		width: 42%;
	}

	.jhp-close-call {
		padding: 26px 20px;
	}
}

/* The theme's back-to-top button, in this page's colours. */
body:has(.jhp) #backToTop {
	border: 1px solid #c6d2ca !important;
	background: #fff !important;
	color: #17523a !important;
	box-shadow: 0 8px 20px -10px rgba(28, 42, 35, 0.45) !important;
}

/* The action bar exists only for phones and small tablets. */
.jhp-dock {
	display: none;
}

.jhp a.jhp-btn:active,
.jhp .jhp-act:active {
	transform: translateY(1px);
}

/*
 * Phones and small tablets: a bottom action bar within thumb reach. (The slim top bar, the menu
 * sheet and the search sheet are part of the shared header: templates/frontend/components/header.tpl.)
 */
@media (max-width: 820px) {

	.jhp-dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1050;
		display: flex;
		gap: 10px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--line);
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 -10px 24px -18px rgba(28, 42, 35, 0.45);
		visibility: hidden;
		transform: translateY(110%);
		transition: transform 0.22s ease, visibility 0s linear 0.22s;
	}

	.jhp-dock.jhp-dock-on {
		visibility: visible;
		transform: none;
		transition: transform 0.22s ease;
	}

	body.phone-menu-open .jhp-dock {
		visibility: hidden;
	}

	.jhp .jhp-dock a.jhp-btn {
		flex: 1 1 0;
		min-height: 48px;
		padding: 0 12px;
		font-size: 1rem;
		white-space: nowrap;
	}

	.jhp .jhp-dock a.jhp-btn-solid {
		flex-grow: 1.5;
	}

	/* The theme's back-to-top button sits clear of the action bar. */
	body:has(.jhp) #backToTop {
		right: 14px !important;
		bottom: 82px !important;
		width: 44px !important;
		height: 44px !important;
	}
}

/* Phone-only layout of the page's own sections */
@media (max-width: 640px) {
	.jhp .jhp-hero-meta {
		font-size: 0.86rem;
	}

	/* Figures come before the drawing, so the facts are seen first */
	.jhp-stats {
		order: 2;
		margin-top: 22px !important;
	}

	.jhp-hero-art {
		order: 3;
		max-width: 250px;
		margin-top: 18px;
	}

	.jhp .jhp-hero-index li a {
		min-height: 40px;
		padding: 0 13px;
		font-size: 0.95rem;
	}

	/* Index list: the name and its link only, so five services fit in one screen */
	.jhp-found li {
		padding: 14px 18px;
	}

	.jhp-found p {
		display: none;
	}

	.jhp .jhp-found h3 {
		margin-bottom: 4px;
	}

	.jhp-people li {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jhp a.jhp-btn,
	.jhp .jhp-act,
	.jhp a.jhp-more i,
	.jhp-dock,
	.jhp-dock.jhp-dock-on {
		transition: none;
	}

	.jhp a.jhp-btn:active,
	.jhp .jhp-act:active {
		transform: none;
	}

	.jhp a.jhp-more:hover i {
		transform: none;
	}
}
