/* Pariay Journal — "Download PDF" button and card listing styles.
   House colours: brown #3E2723, coral #C06B4A, cream #FDF8EE. */

.pariay-journal-pdf {
	margin: 2em 0;
}

.pariay-journal-pdf-button {
	display: inline-block;
	background: #c06b4a;
	color: #ffffff;
	padding: 0.7em 1.4em;
	border-radius: 3px;
	text-decoration: none;
	font-weight: 600;
}

.pariay-journal-pdf-button:hover,
.pariay-journal-pdf-button:focus {
	background: #3e2723;
	color: #ffffff;
}

/* ---- Thumbnail card grid (v1.0.3) ----
   The [pariay_journal] shortcode renders thumbnail cards in a
   responsive grid: it wraps to a single column on a phone (the
   240px minimum track is wider than a narrow screen allows two of).
   Same house card treatment as the Book Showcase cards: white,
   thin warm border, 4px radius, Cinzel titles, coral links. */

.pariay-journal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5em;
	margin: 0 0 2em;
}

.pariay-journal-card {
	background: #ffffff;
	border: 1px solid #e8ded8;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pariay-journal-card-thumb {
	aspect-ratio: 16 / 10;
	background: #fdf8ee;
	overflow: hidden;
}

.pariay-journal-card-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.pariay-journal-card-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The Pariay seal placeholder: the whole seal shows, centred on
   cream, instead of being cropped like a photo. */
.pariay-journal-card-thumb-img--seal {
	object-fit: contain;
	padding: 1.25em;
}

/* No image at all: a plain cream area, so nothing can break. */
.pariay-journal-card-thumb--empty {
	background: #fdf8ee;
}

.pariay-journal-card-body {
	padding: 1.25em 1.25em 1.5em;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.pariay-journal-card-title {
	font-family: Cinzel, 'Cormorant Garamond', serif;
	color: #3e2723;
	margin: 0 0 0.5em;
	font-size: 1.15em;
	line-height: 1.35;
}

.pariay-journal-card-title a {
	color: #3e2723;
	text-decoration: none;
}

.pariay-journal-card-title a:hover,
.pariay-journal-card-title a:focus {
	color: #c06b4a;
}

.pariay-journal-card-standfirst {
	font-style: italic;
	color: #5d4037;
	margin: 0 0 1em;
	flex: 1;
}

.pariay-journal-card-links {
	margin: 0;
}

.pariay-journal-card-links a {
	margin-right: 1.25em;
	color: #c06b4a;
	font-weight: 600;
	text-decoration: none;
}

.pariay-journal-card-links a:hover,
.pariay-journal-card-links a:focus {
	color: #3e2723;
	text-decoration: underline;
}

/* ---- Sort + filter controls (v1.0.5) ----
   Only rendered with [pariay_journal controls="true"] (the
   Lifelong Learning page). Same house treatment as the cards:
   cream panel, warm border, Cinzel labels, coral select borders. */

.pariay-journal-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1em 1.5em;
	align-items: flex-end;
	background: #fdf8ee;
	border: 1px solid #e8ded8;
	border-radius: 4px;
	padding: 1em 1.25em;
	margin: 0 0 1.5em;
}

.pariay-journal-control {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	min-width: 0;
}

.pariay-journal-control label {
	font-family: Cinzel, 'Cormorant Garamond', serif;
	color: #3e2723;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.pariay-journal-control select {
	font-family: inherit;
	font-size: 1em;
	line-height: 1.4;
	color: #3e2723;
	background: #ffffff;
	border: 1px solid #c06b4a;
	border-radius: 3px;
	padding: 0.5em 0.6em;
	max-width: 100%;
}

.pariay-journal-control select:focus {
	outline: 2px solid #c06b4a;
	outline-offset: 1px;
}

/* Empty-result message (v1.0.5): shown by the controls script when
   no card matches the current sort + filter combination. It lives
   inside the grid so it appears in the grid area; the hidden
   attribute keeps it off until the script shows it. */
.pariay-journal-no-results {
	grid-column: 1 / -1;
	background: #fdf8ee;
	border: 1px solid #e8ded8;
	border-radius: 4px;
	color: #5d4037;
	font-style: italic;
	text-align: center;
	padding: 1.25em;
	margin: 0;
}

/* ---- Horizontal article strip (v1.0.6) ----
   With [pariay_journal strip="true"] (the author page) the same
   cards sit in ONE horizontal row that scrolls sideways — a flex
   strip, not a grid — so the section reads as a compact stripe of
   suggestions, the article equivalent of the Book Showcase "More
   from Pariay Publishers" strip. Cards are a fixed 280px wide (the
   grid's natural card width) and never shrink, so they stay in a
   single row; the arrows beside the track scroll by one card (see
   assets/journal-strip.js). The strip script adds
   .pariay-journal-strip--centered to the wrapper only while the
   row fits, so the cards centre under the heading on a wide screen;
   the default stays flex-start, because a centred row that
   overflows cannot be scrolled back to its start. */

.pariay-journal-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 2em;
}

.pariay-journal-strip-track {
	display: flex;
	gap: 1.5em;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	flex: 1 1 auto;
	min-width: 0;
	padding-bottom: 4px;
}

.pariay-journal-strip-track::-webkit-scrollbar {
	display: none;
}

.pariay-journal-strip-track .pariay-journal-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
}

/* Strip arrows: same house style as the Book Showcase strip arrows
   — dark brown circle, cream chevron, coral on hover. Hidden (JS)
   when the strip has nothing to scroll; disabled at each end. */
.pariay-journal-strip-arrow {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(62, 39, 35, 0.85);
	color: #fdf8ee;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 0 3px;
}

.pariay-journal-strip-arrow:hover,
.pariay-journal-strip-arrow:focus-visible {
	background: #c06b4a;
	color: #fdf8ee;
}

.pariay-journal-strip-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.pariay-journal-strip-arrow[hidden] {
	display: none;
}

/* Strip centred when it fits (v1.0.6): the JS adds this class only
   while the track fits (scrollWidth <= clientWidth). */
.pariay-journal-strip--centered .pariay-journal-strip-track {
	justify-content: center;
}
