/* Grade House Toolkit — journal: the article page and the article list. */

/* ── shared: breadcrumb, title block ── */
.gh-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--gh-muted); }
.gh-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.gh-crumbs li + li::before { content: ""; width: 14px; height: 1px; margin: 0 10px; background: var(--gh-card-line); }
.gh-crumbs a { color: var(--gh-text); text-decoration: none; }
.gh-crumbs a:hover { color: var(--gh-blue); text-decoration: underline; text-underline-offset: 3px; }
.gh-crumbs [aria-current] { color: var(--gh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.gh.gh-article__head, .gh.gh-journal__head { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--gh-line); }

/* ── article ── */
.gh.gh-article__head .wrap { max-width: calc(72ch + 2 * var(--gh-pad) + 220px); }
.gh .gh-article__cat { margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.gh .gh-article__cat a { color: var(--gh-blue); text-decoration: none; }
.gh .gh-article__cat a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gh .h1.gh-article__title { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; max-width: 22ch; }
.gh .gh-article__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 15px; color: var(--gh-muted); }
.gh .gh-article__meta span { display: inline-flex; align-items: center; gap: 22px; }
.gh .gh-article__meta span::before { content: ""; width: 1px; height: 14px; background: var(--gh-line); }

.gh.gh-article__hero { padding-top: clamp(32px, 4vw, 56px); }
.gh .gh-article__figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--gh-paper-2); }
.gh .gh-article__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.gh.gh-article__main { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.gh .gh-article__body { max-width: 72ch; margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--gh-text); }
.gh .gh-article__body > * + * { margin-top: 1.15em; }
.gh .gh-article__body h2 { font: 600 32px/1.14 var(--gh-head); color: var(--gh-ink); margin-top: 1.8em; letter-spacing: var(--gh-track); }
.gh .gh-article__body h3 { font: 600 22px/1.3 var(--gh-sans); color: var(--gh-ink); margin-top: 1.6em; }
.gh .gh-article__body h4 { font: 600 18px/1.4 var(--gh-sans); color: var(--gh-ink); margin-top: 1.4em; }
.gh .gh-article__body h2 + *, .gh .gh-article__body h3 + *, .gh .gh-article__body h4 + * { margin-top: .6em; }
.gh .gh-article__body img { width: 100%; height: auto; }
.gh .gh-article__body figure, .gh .gh-article__body .wp-block-image { margin-left: 0; margin-right: 0; }
.gh .gh-article__body figcaption, .gh .gh-article__body .wp-caption-text { margin-top: 10px; font-size: 14px; font-style: italic; line-height: 1.5; color: var(--gh-muted); }
.gh .gh-article__body .wp-caption { max-width: 100%; }
.gh .gh-article__body hr { border: 0; height: 1px; background: var(--gh-line); margin: 2.4em 0; }

.gh.gh-article__more { background: var(--gh-paper-2); }
.gh .gh-article__more-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 56px); }

/* ── article list ── */
.gh .h1.gh-journal__title { margin-bottom: 18px; }
.gh .gh-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.gh .gh-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--gh-line); border-radius: 2px; background: var(--gh-white); font-size: 15px; font-weight: 500; color: var(--gh-ink); text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
.gh .gh-filter a:hover { border-color: var(--gh-ink); }
.gh .gh-filter a[aria-current] { background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; }

.gh .gh-pages { margin-top: clamp(48px, 6vw, 80px); }
.gh .gh-pages ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gh .gh-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--gh-line); border-radius: 2px; font-size: 15px; font-weight: 600; color: var(--gh-ink); text-decoration: none; background: var(--gh-white); }
.gh .gh-pages a.page-numbers:hover { border-color: var(--gh-ink); }
.gh .gh-pages .page-numbers.current { background: var(--gh-ink); border-color: var(--gh-ink); color: #fff; }
.gh .gh-pages .page-numbers.dots { border-color: transparent; background: none; }

@media (max-width: 767px) {
	.gh-crumbs [aria-current] { max-width: 26ch; }
	.gh .h1.gh-article__title { font-size: 34px; }
	.gh .gh-article__body { font-size: 17px; }
	.gh .gh-article__body h2 { font-size: 28px; }
	.gh .gh-article__body h3 { font-size: 20px; }
	.gh .gh-filter { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gh-pad)); padding-right: var(--gh-pad); overscroll-behavior-x: contain; scrollbar-width: none; }
	.gh .gh-filter a { flex: none; }
	.gh .gh-article__more-top .btn { width: 100%; }
}
