/* Homepage (views/homepage.php), layout Step 5, 2026-10-27. Brand kit colours/fonts; scoped under .ghm. */
.ghm {
	--forest: #2f4a3c; --forest-hover: #253b30; --forest-tint: #e4ece7; --rice: #5f6b2b;
	--grain: #e1d18c; --grain-ink: #3a3410; --oa-tint: #f3ead0; --oa-ink: #6b5a14;
	--link: #176f9c; --ink: #404040; --muted: #61655f; --paper: #f7f5ee; --surface: #fff; --line: #e2dccd;
	--serif: "Noto Serif", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
	--sans: "Noto Sans", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
	color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; margin: 0 0 8px;
}
.ghm a { color: var(--link); text-decoration: none; }
.ghm a:hover, .ghm a:focus { color: #0f5378; text-decoration: underline; }
.ghm h1, .ghm h2, .ghm h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; text-wrap: balance; margin: 0; }
:where(.ghm) p { margin: 0; }

/* Hero */
.ghm-hero { margin: 24px 0 36px; padding: 36px 40px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; }
.ghm-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rice); margin-bottom: 10px; }
.ghm-hero h1 { font-size: 34px; line-height: 1.22; color: var(--forest); }
.ghm-lead { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 40em; }
.ghm-search { margin-top: 22px; display: flex; height: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 640px; }
.ghm-search:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-tint); }
.ghm-search select { flex: none; border: 0; border-right: 1px solid var(--line); background: transparent; padding: 0 8px 0 14px; font: 14px var(--sans); color: var(--muted); }
.ghm-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: 16px var(--sans); color: var(--ink); outline: 0; background: transparent; }
.ghm-search button { flex: none; border: 0; padding: 0 20px; background: var(--forest); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.ghm-search button:hover { background: var(--forest-hover); }
.ghm-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.ghm-btn { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--forest); color: #fff !important; font-weight: 600; font-size: 15px; border: 1px solid var(--forest); }
.ghm-btn:hover, .ghm-btn:focus { background: var(--forest-hover); text-decoration: none !important; }
.ghm-btn-line { background: transparent; color: var(--forest) !important; }
.ghm-btn-line:hover, .ghm-btn-line:focus { background: var(--forest-tint); }
.ghm-figs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ghm-figs > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ghm-figs dt { font-size: 13px; font-weight: 400; color: var(--muted); }
.ghm-figs dd { margin: 0; order: -1; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--forest); font-variant-numeric: tabular-nums; }
.ghm-figs > div { display: flex; flex-direction: column; }

/* Sections */
.ghm-sec { margin: 0 0 40px; }
.ghm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ghm-head h2 { font-size: 24px; }
.ghm-head a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.ghm-note { color: var(--muted); font-size: 15px; margin: -8px 0 16px !important; }

/* Latest articles */
.ghm-arts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ghm-art { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ghm-art-img { display: block; aspect-ratio: 4 / 3; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.ghm-art-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; box-sizing: border-box; }   /* graphical abstracts are square or portrait: show the whole picture, never crop */
.ghm-art-img.is-cover { background: var(--paper); }
.ghm-art-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.ghm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px !important; }
.ghm-chip { font-size: 12px; font-weight: 600; letter-spacing: .03em; padding: 2px 9px; border-radius: 999px; background: var(--forest-tint); color: var(--forest); }
.ghm-chip-oa { background: var(--oa-tint); color: var(--oa-ink); }
.ghm-art h3 { font-size: 17px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ghm-art h3 a { color: var(--ink); }
.ghm-art h3 a:hover { color: var(--forest); }
.ghm-by { margin-top: 8px !important; font-size: 14px; color: var(--ink); }
.ghm-src { margin-top: auto !important; padding-top: 10px; font-size: 13px; color: var(--muted); }
.ghm-src a { color: var(--rice); font-weight: 600; }

/* Journals */
.ghm-jrnls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ghm-jrnl { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.ghm-jrnl-cover { flex: none; }
.ghm-jrnl-cover img { width: 96px; height: 128px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.ghm-jrnl-body { min-width: 0; }
.ghm-jrnl h3 { font-size: 19px; line-height: 1.3; }
.ghm-jrnl h3 a { color: var(--forest); }
.ghm-partner { margin-top: 4px !important; font-size: 13px; color: var(--rice); }
.ghm-aim { margin-top: 8px !important; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ghm-meta { margin-top: 10px !important; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }

/* Books */
.ghm-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.ghm-books .ghm-sec { margin: 0; }
.ghm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.ghm-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ghm-book { display: flex; flex-direction: column; gap: 4px; color: var(--ink) !important; }
.ghm-book:hover { text-decoration: none !important; }
.ghm-book:hover .ghm-book-t { color: var(--forest); text-decoration: underline; }
.ghm-book-cover { position: relative; display: block; aspect-ratio: 12 / 17; background: var(--paper); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 4px; }
.ghm-book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ghm-oa { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--oa-tint); color: var(--oa-ink); }
.ghm-book-t { font-family: var(--serif); font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ghm-book-a { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Publish with us */
.ghm-publish { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.ghm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ghm-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink) !important; }
a.ghm-card:hover, a.ghm-card:focus { border-color: var(--forest); text-decoration: none !important; }
.ghm-card b { display: block; font-family: var(--serif); font-size: 16px; color: var(--forest); margin-bottom: 4px; }
.ghm-card span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ghm-card span a { font-weight: 600; }
.ghm-trust { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ghm-trust span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rice); }
.ghm-trust img { height: 44px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; box-sizing: content-box; }
.ghm-poster { margin: 0; width: 220px; }
.ghm-poster img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }

@media (max-width: 1199px) {
	.ghm-hero { grid-template-columns: minmax(0, 1fr) 260px; padding: 32px; }
	.ghm-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.ghm-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ghm-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ghm-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ghm-jrnls, .ghm-books { grid-template-columns: minmax(0, 1fr); }
	.ghm-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ghm-publish { grid-template-columns: minmax(0, 1fr); }
	.ghm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ghm-poster { width: 200px; }
}
@media (max-width: 600px) {
	.ghm-hero { margin-top: 12px; padding: 22px 18px; border-radius: 12px; }
	.ghm-hero h1 { font-size: 25px; }
	.ghm-lead { font-size: 15px; }
	.ghm-search { height: 46px; }
	.ghm-search select { max-width: 76px; padding-left: 8px; }
	.ghm-search button { padding: 0 14px; }
	.ghm-search button .fa { margin: 0; }
	.ghm-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.ghm-figs dd { font-size: 22px; }
	.ghm-arts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ghm-art { flex-direction: row; }
	.ghm-art-img { flex: none; width: 108px; aspect-ratio: auto; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--line); }
	.ghm-art-body { padding: 12px; }
	.ghm-art h3 { font-size: 15.5px; }
	.ghm-jrnl { gap: 14px; padding: 14px; }
	.ghm-jrnl-cover img { width: 72px; height: 96px; }
	.ghm-jrnl h3 { font-size: 17px; }
	.ghm-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ghm-panel { padding: 16px; }
	.ghm-publish { padding: 18px; }
	.ghm-cards { grid-template-columns: minmax(0, 1fr); }
	.ghm-head h2 { font-size: 21px; }
}

/* Full-width shelves: new arrivals under the latest articles, e-books under the journals (2026-10-27) */
.ghm-wide { margin-bottom: 40px; }
.ghm-shelf-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 991px) { .ghm-shelf-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ghm-shelf-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* Six figures (articles, books published, authors, books in store, citations, countries), 2026-10-27 */
.ghm-hero { grid-template-columns: minmax(0, 1fr) 340px; }
.ghm-figs dd { font-size: 26px; }
@media (max-width: 1199px) { .ghm-hero { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 991px) { .ghm-hero { grid-template-columns: minmax(0, 1fr); } .ghm-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ghm-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ghm-figs dd { font-size: 22px; } }

/* Hero buttons on phones: an even 2 x 2 grid (four buttons incl. Publishing services), 2026-10-27 */
@media (max-width: 600px) {
	.ghm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
	.ghm-actions .ghm-btn { padding: 10px 8px; font-size: 14px; text-align: center; line-height: 1.3; display: flex; align-items: center; justify-content: center; }
}
