/* Ghincea Core lists. Colours and fonts come from the theme's presets, with fallbacks. */
.ghc-publications,
.ghc-list,
.ghc-details {
	--ghc-ink: var(--wp--preset--color--ink, #16161a);
	--ghc-body: var(--wp--preset--color--body, #33333a);
	--ghc-muted: var(--wp--preset--color--muted, #5a5a63);
	--ghc-line: var(--wp--preset--color--line, #deddd8);
	--ghc-accent: var(--wp--preset--color--accent, #8a1c2b);
	--ghc-sans: var(--wp--preset--font-family--sans, system-ui, sans-serif);
}

.ghc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0 0 2rem;
	font-family: var(--ghc-sans);
	font-size: 1rem;
}
.ghc-filters[hidden] {
	display: none;
}
.ghc-filters button {
	font: inherit;
	background: none;
	border: 0;
	padding: 0.6rem 0;
	min-height: 44px;
	color: var(--ghc-ink);
	cursor: pointer;
	border-bottom: 2px solid transparent;
}
.ghc-filters button:hover {
	color: var(--ghc-accent);
}
.ghc-filters button[aria-pressed="true"] {
	color: var(--ghc-accent);
	border-bottom-color: var(--ghc-accent);
}
.ghc-filters button:focus-visible,
.ghc-toggle:focus-visible,
.ghc-copy:focus-visible {
	outline: 2px solid var(--ghc-accent);
	outline-offset: 3px;
}

.ghc-group + .ghc-group {
	margin-top: 3.5rem;
}
.ghc-group[hidden] {
	display: none;
}
.ghc-group__title {
	margin: 0 0 0.25rem;
	padding-top: 1.1rem;
	border-top: 2px solid var(--ghc-accent);
	font-size: var(--wp--preset--font-size--x-large, 1.85rem);
	font-weight: 500;
	line-height: 1.2;
}

h3.ghc-group__title.is-year,
h4.ghc-group__title.is-year {
	border-top-width: 1px;
	border-top-color: var(--ghc-line);
	font-size: var(--wp--preset--font-size--large, 1.5rem);
}
.ghc-group + .ghc-group:has(> .is-year) {
	margin-top: 2.5rem;
}

/* Publication entry */
.ghc-pub {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2.5rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--ghc-line);
}
.ghc-pub__aside {
	flex: 0 0 8rem;
	display: flex;
	flex-direction: column;
	font-family: var(--ghc-sans);
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--ghc-muted);
}
.ghc-pub__year {
	font-weight: 600;
	color: var(--ghc-ink);
}
.ghc-pub__type {
	color: var(--ghc-accent);
}
.ghc-pub__main {
	flex: 999 1 30rem;
	min-width: 0;
}
.ghc-pub__title {
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--large, 1.5rem);
	font-weight: 500;
	line-height: 1.3;
}
.ghc-pub__title a {
	color: var(--ghc-ink);
	text-decoration: none;
}
.ghc-pub__title a:hover {
	color: var(--ghc-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.ghc-pub__translation {
	margin: 0 0 0.35rem;
	font-style: italic;
	color: var(--ghc-muted);
}
.ghc-pub__meta {
	margin: 0 0 0.85rem;
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--ghc-body);
}
.ghc-pub__meta strong {
	font-weight: 600;
	color: var(--ghc-ink);
}

.ghc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1.4rem;
	font-family: var(--ghc-sans);
	font-size: 1rem;
}
.ghc-actions a,
.ghc-toggle,
.ghc-copy {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ghc-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.ghc-toggle,
.ghc-copy {
	font: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.ghc-actions a:hover,
.ghc-toggle:hover,
.ghc-copy:hover {
	color: var(--ghc-ink);
}

.ghc-js .ghc-panel:not(.is-open) {
	display: none;
}
.ghc-panel {
	margin-top: 0.5rem;
	max-width: 46rem;
}
.ghc-abstract {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ghc-body);
}
.ghc-abstract > *:first-child {
	margin-top: 0;
}
.ghc-abstract > *:last-child {
	margin-bottom: 0;
}
.ghc-cite {
	padding: 1rem 1.25rem;
	border: 1px solid var(--ghc-line);
}
.ghc-cite__text {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ghc-body);
	overflow-wrap: anywhere;
}
.ghc-cite__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.4rem;
	margin: 0;
	font-family: var(--ghc-sans);
	font-size: 0.9375rem;
}
.ghc-cite__links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ghc-accent);
}

/* Single publication page */
.ghc-details__type {
	margin: 0 0 0.5rem;
	font-family: var(--ghc-sans);
	font-size: 1rem;
	color: var(--ghc-accent);
}
.ghc-details .ghc-pub__meta {
	font-size: 1.1875rem;
}

/* Commentary and media lists */
.ghc-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ghc-item {
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--ghc-line);
}
.ghc-item[hidden] {
	display: none;
}
.ghc-item__title {
	display: inline-block;
	margin-bottom: 0.2rem;
	font-size: 1.3125rem;
	line-height: 1.38;
	color: var(--ghc-ink);
	text-decoration: none;
}
.ghc-item__title:hover {
	color: var(--ghc-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.ghc-item__meta {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--ghc-muted);
}
.ghc-commentary .ghc-item__meta {
	font-style: italic;
}
.ghc-media .ghc-item__title {
	font-size: 1.1875rem;
}
.ghc-media .ghc-item__meta {
	font-family: var(--ghc-sans);
	font-size: 0.9375rem;
}

/* Profile links */
.ghc-profiles {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	line-height: 2;
}
.ghc-profiles.is-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}
.ghc-profiles a {
	color: var(--wp--preset--color--accent, #8a1c2b);
}

@media (max-width: 640px) {
	.ghc-pub__aside {
		flex-basis: 100%;
		flex-direction: row;
		gap: 0.75rem;
	}
	.ghc-pub__title {
		font-size: 1.3rem;
	}
}

/* Compact citation list (CV) */
.ghc-compact {
	--ghc-accent: var(--wp--preset--color--accent, #8a1c2b);
	--ghc-muted: var(--wp--preset--color--muted, #5a5a63);
}
.ghc-compact__note {
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 0.875rem;
	color: var(--ghc-muted);
}
.ghc-compact__title {
	margin: 2rem 0 0.75rem;
	font-size: var(--wp--preset--font-size--medium, 1.1875rem);
	font-weight: 600;
}
.ghc-compact__title:first-child {
	margin-top: 0.5rem;
}
.ghc-compact__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ghc-compact__item {
	margin: 0 0 0.6rem;
	padding-left: 1.5rem;
	text-indent: -1.5rem;
	font-size: 1.0625rem;
	line-height: 1.55;
}
.ghc-compact__item a {
	color: inherit;
	text-decoration: none;
}
.ghc-compact__item a:hover {
	color: var(--ghc-accent);
	text-decoration: underline;
}
