/**
 * The blog listing.
 *
 * Figma: PAC-Page-Designs
 *   desktop  node 2040:1251  1440 x 3363.4
 *   tablet   node 2216:2743   768 x 3523.9
 *   phone    node 2216:3618   390 x 6043.95
 *
 * Four bands, one more than the rest of the site. The extra one is at 1024,
 * where the filter bar changes from a button to a full row of categories -
 * that boundary comes from the library's own note about the bar and is not
 * where the grid changes, which is at 1200.
 *
 *   below 768   one column, compact bar
 *   768-1023    two columns, compact bar
 *   1024-1199   two columns, full bar
 *   1200+       three columns, full bar
 */


/* The breadcrumb is assets/css/breadcrumb.css, because pages have one too.
   What stays here is only the listing's wider inset at 1200, further down. */


/* ------------------------------------------------------------
   The header, and the bar that hangs off the bottom of it
   Figma nodes 2215:2178 and 2215:2265.
   ------------------------------------------------------------ */

.pchs-blog-head {
	position: relative;
	z-index: 1;
}

/*
 * THE HEADER IS THE BANNER BAND, IN ITS GOLD TONE.
 *
 * Figma calls this frame Marquee-Sm (node 2215:2178) - the same component
 * the Financial Aid page uses - so the gradient, the ginkgo held against
 * the right-hand edge, the padding, and the heading and paragraph types all
 * come from assets/css/marquee-sm.css. They used to be written out again
 * here, which is two places to change whenever the design moves.
 *
 * What is left below is only what is genuinely different about THIS
 * instance of it, and there are three things:
 *
 *   1. a deeper bottom padding, because the filter bar hangs over the
 *      bottom edge and the words have to stay clear of it;
 *   2. a larger headline - 40/56/56 against the band's 32/40/48;
 *   3. a narrower text column - 788 rather than 868 with an 80 inset.
 *
 * The first is the only one that is structural. The other two are this
 * instance's overrides in Figma, and are written as overrides here too.
 */

/*
 * The bar overlaps the bottom edge, so this band is deeper underneath than
 * the symmetric padding the component gives it.
 *
 * Set on the band itself, replacing its padding-bottom. The band pads the
 * SECTION, not the content inside it, so adding padding to the content
 * instead stacks on top of what is already there - which it did, and made
 * the header 40, 64 and 80 too tall at the three widths.
 *
 * blog.css names marquee-sm.css as a dependency, so it always loads after
 * it and these win on order.
 */
.pchs-blog-hero {
	padding-bottom: var(--wp--preset--spacing--64); /* 64 against the band's 40 */
}

.pchs-blog-hero__title {
	font-size: 40px;
	line-height: 40px; /* the frame lays this one on 1 exactly, not on 1.16 */
}

/* The Emphasis format writes a span, but this heading's words come from a
   setting rather than from the block editor, and that setting allows <em>. */
.pchs-blog-hero__title em {
	font-style: normal;
	font-weight: 600;
}

/*
 * The bar straddles the line between the header and the list, centred on it:
 * 68 tall, pulled up by half of itself. It stays in the flow rather than
 * being positioned over the boundary, so that a bar which grows - wrapping
 * onto a second line with no JavaScript - pushes the list down instead of
 * sitting on top of it.
 */
.pchs-blog-head__bar {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--wp--custom--breakpoint--max-page);
	margin-inline: auto;
	margin-top: -34px;
	padding-inline: var(--wp--preset--spacing--10);
}


/* ------------------------------------------------------------
   The filter bar
   ------------------------------------------------------------ */

.pchs-subnav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--12); /* 12px */
	padding: var(--wp--preset--spacing--12); /* 12px */
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--white);
	filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.15));
}

/*
 * The two controls either side of the bar, and the categories inside it, all
 * sit on a 2px line drawn INSIDE their box - the same way Figma draws every
 * stroke. A CSS border would put each of them at 48 rather than the 44 the
 * frame gives them, and the bar at 92 rather than 68.
 */
.pchs-subnav__compact,
.pchs-subnav__sort-toggle,
.pchs-subnav__search {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: var(--wp--preset--spacing--8); /* 8px */
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16); /* 12/16 */
	border: 0;
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--blue-100);
	color: var(--wp--preset--color--neutral-800);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;
	line-height: 20px; /* 16 x 1.24, laid out on 20 */
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pchs-subnav__compact:hover,
.pchs-subnav__sort-toggle:hover,
.pchs-subnav__search:hover {
	background-color: var(--wp--preset--color--gray-500);
}

/* Below 1024 the categories, the sort and the search are all behind this
   one button; above it, the button goes and the row appears. */
.pchs-subnav__panel {
	display: none;
}

.pchs-subnav[data-open] .pchs-subnav__panel {
	display: flex;
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	top: calc(100% + var(--wp--preset--spacing--8));
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--12);
	padding: var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--lg);
}

.pchs-subnav {
	position: relative;
}

.pchs-subnav__links {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--12); /* 12px */
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Figma node I2215:2265;6490:2271: 12px of padding, no line, and the current
   one picked out with the pale grey rather than a border. */
.pchs-subnav__link {
	display: block;
	padding: var(--wp--preset--spacing--12); /* 12px */
	border-radius: var(--wp--custom--radius--full);
	background-color: transparent;
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.pchs-subnav__link:hover,
.pchs-subnav__link:focus-visible {
	background-color: var(--wp--preset--color--gray-500);
}

.pchs-subnav__link.is-current {
	background-color: var(--wp--preset--color--gray-500);
}

.pchs-subnav__tools {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--12);
}

.pchs-subnav__sort {
	position: relative;
}

.pchs-subnav__sort-toggle {
	width: 240px;
	justify-content: space-between;
}

.pchs-subnav__sort-value {
	flex: 1 1 auto;
	color: var(--wp--preset--color--blue-500);
	text-align: left;
}

.pchs-subnav__sort-toggle .pchs-triangle {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	color: var(--wp--preset--color--blue-500);
	transition: transform 0.2s ease;
}

.pchs-subnav__sort-toggle[aria-expanded="true"] .pchs-triangle {
	transform: rotate(180deg);
}

.pchs-subnav__sort-list,
.pchs-subnav__more-list {
	position: absolute;
	z-index: 3;
	right: 0;
	top: calc(100% + var(--wp--preset--spacing--8));
	display: flex;
	width: max-content;
	min-width: 100%;
	flex-direction: column;
	margin: 0;
	padding: var(--wp--preset--spacing--8);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--lg);
	list-style: none;
}

.pchs-subnav__sort-list[hidden],
.pchs-subnav__more-list[hidden],
.pchs-subnav__more[hidden] {
	display: none;
}

.pchs-subnav__sort-option,
.pchs-subnav__more-list .pchs-subnav__link {
	display: block;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md);
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}

.pchs-subnav__sort-option:hover,
.pchs-subnav__sort-option.is-current {
	background-color: var(--wp--preset--color--gray-500);
}

.pchs-subnav__more {
	position: relative;
}

.pchs-subnav__more-toggle {
	display: flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--12);
	border: 0;
	border-radius: var(--wp--custom--radius--full);
	background-color: transparent;
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md);
	font-weight: 500;
	line-height: 20px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pchs-subnav__more-toggle:hover,
.pchs-subnav__more-toggle[aria-expanded="true"] {
	background-color: var(--wp--preset--color--gray-500);
}

.pchs-subnav__search {
	position: relative;
}

.pchs-subnav__search input {
	width: 7em;
	min-width: 0;

	/*
	 * A search field carries a couple of pixels of padding of its own from
	 * the browser, which makes it 22 rather than 20 and the whole bar 86
	 * rather than the 84 the frame draws. Taken off explicitly.
	 */
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--neutral-800);
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* The field looks like a label until it is used. */
.pchs-subnav__search input::placeholder {
	color: var(--wp--preset--color--neutral-800);
	opacity: 1;
}

.pchs-subnav__search button {
	display: flex;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--blue-500);
	cursor: pointer;
}


/* ------------------------------------------------------------
   The list
   Figma node 2216:2270.
   ------------------------------------------------------------ */

.pchs-blog-listing {
	background-color: var(--wp--preset--color--white);
}

.pchs-blog-listing__inner {
	width: 100%;
	max-width: var(--wp--custom--breakpoint--max-page);
	margin-inline: auto;

	/*
	 * 64 from the frame, less the 34 the bar was pulled up by - the frame
	 * measures that gap from the header's edge, and the bar now sits in the
	 * flow between the two.
	 */
	padding: 30px var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}

.pchs-blog-listing__empty {
	margin: 0;
	color: var(--wp--preset--color--neutral-800);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.5;
}


/* ------------------------------------------------------------
   The featured article
   Figma node I2216:2270;6500:3244.
   ------------------------------------------------------------ */

.pchs-featured-article {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--40); /* 40px to the grid */
}

.pchs-featured-article__image {
	position: relative;
	aspect-ratio: 140 / 105;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--xl); /* 32px */
	box-shadow: var(--wp--preset--shadow--lg);
}

.pchs-featured-article__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pchs-featured-article__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20); /* 20px */
}

/* The badges belong to the title: 12 between them, 20 to everything else. */
.pchs-featured-article__head {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--12); /* 12px */
}

.pchs-featured-article__meta,
.pchs-card-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--8); /* 8px */
	margin: 0;
}

/* The pill that names a category. Figma node I2216:2270;6500:3246;6493:3205. */
.pchs-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--12); /* 4/12 */
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--gray-800);
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs); /* 12px */
	font-weight: 700;
	line-height: 14px; /* 12 x 1.2, laid out on 14 */
	letter-spacing: var(--wp--custom--tracking--label); /* 0.02em */
}

.pchs-tag--featured {
	background-color: var(--wp--preset--color--blue-300);
	color: var(--wp--preset--color--white);
}

.pchs-featured-article__date {
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 14px;
	letter-spacing: var(--wp--custom--tracking--label);
}

/*
 * Light, with the marked words heavier - the frame sets the opening of this
 * headline in the heavy weight and the rest in the light one, the same way a
 * section heading on the home page works.
 *
 * The card below does NOT do this: its frame sets the whole title heavy, so
 * .pchs-em simply matches what is already there and marking a title changes
 * nothing on a card. One title, two places, and both match their frame.
 */
.pchs-featured-article__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--title);
	font-size: 32px;
	font-weight: 300;
	line-height: 37px; /* 32 x 1.16 */
	letter-spacing: var(--wp--custom--tracking--label); /* 0.02em */
	text-transform: uppercase;
}

.pchs-featured-article__title .pchs-em {
	font-weight: 600;
}

/*
 * Three lines, then stop - and the same for the paragraph below. The frames
 * clip both rather than let one long article make the block taller than the
 * photograph beside it: at 768 they give the title 111 and the paragraph 90,
 * which is three lines of each.
 */
.pchs-featured-article__title a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--wp--preset--color--blue-500);
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.pchs-featured-article__title a:hover,
.pchs-featured-article__title a:focus-visible {
	text-decoration: underline;
}

.pchs-featured-article__excerpt {
	margin: 0;
	overflow: hidden;
	color: var(--wp--preset--color--blue-800);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	line-height: 1.5;
	letter-spacing: var(--wp--custom--tracking--tight); /* -0.02em */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.pchs-featured-article__action {
	margin: 0;
}


/* ------------------------------------------------------------
   The grid
   ------------------------------------------------------------ */

.pchs-blog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20); /* 20px on a phone */
}

/* Figma nodes I2216:2270;6500:3246 (with an image) and ...3250 (without). */
.pchs-card-article {
	position: relative;
	display: flex;
	overflow: hidden;
	flex-direction: column;
	border-radius: var(--wp--custom--radius--lg); /* 24px */
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--lg); /* 0 12px 24px */
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pchs-card-article:hover,
.pchs-card-article:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.2);
}

.pchs-card-article__image {
	position: relative;
	aspect-ratio: 300 / 200;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: var(--wp--preset--shadow--md); /* 0 8px 12px */
}

.pchs-card-article__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pchs-card-article__body {
	display: flex;
	flex: 1 1 auto;
	align-items: flex-end;
	gap: var(--wp--preset--spacing--12);
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--12) var(--wp--preset--spacing--24) var(--wp--preset--spacing--24);
}

/* No image, so the body is the whole card and gets the full padding. */
.pchs-card-article--no-image .pchs-card-article__body {
	padding-top: var(--wp--preset--spacing--24);
}

.pchs-card-article__info {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4); /* 4px */
}

.pchs-card-article--no-image .pchs-card-article__info {
	gap: var(--wp--preset--spacing--12); /* 12px - the bigger title needs it */
}

.pchs-card-article__meta {
	padding-bottom: var(--wp--preset--spacing--8); /* 8px */
}

.pchs-card-article__date {
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 14px;
	letter-spacing: var(--wp--custom--tracking--label);
}

/*
 * 16 here and 20 from 1200 up. The frames do not label this, but they settle
 * it: a card's body is 164 tall on a desktop and 154 below it, and the only
 * thing inside that changes is this - two lines at 24 against two at 19.
 */
.pchs-card-article__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;
	line-height: 19px; /* 16 x 1.2, laid out on 19 */
	letter-spacing: 0;
	text-transform: none;
}

/* Two lines, like the excerpt below it: the frame gives the title exactly
   that much room before the supporting copy starts. */
.pchs-card-article__title a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/*
 * The title in the no-image card is the display face at H3, which is what
 * fills the space the photograph would have taken.
 */
.pchs-card-article--no-image .pchs-card-article__title {
	font-family: var(--wp--preset--font-family--title);
	font-size: 32px;
	font-weight: 600;
	line-height: 37px; /* 32 x 1.16 */
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
}

/* Four lines here, not the two a card with a photograph gets: this title is
   what fills the space the photograph would have taken. */
.pchs-card-article--no-image .pchs-card-article__title a {
	-webkit-line-clamp: 4;
}

.pchs-card-article__link {
	color: var(--wp--preset--color--blue-500);
	text-decoration: none;
}

/*
 * The link covers the card, so the whole thing is clickable and the arrow in
 * the corner needs no link of its own - which would otherwise be a second
 * link to the same article for a screen reader to read out.
 */
.pchs-card-article__link::after {
	position: absolute;
	content: "";
	inset: 0;
}

.pchs-card-article__link:hover,
.pchs-card-article__link:focus-visible {
	text-decoration: underline;
}

.pchs-card-article__excerpt {
	margin: 0;
	padding-right: 40px; /* clear of the arrow in the corner */
	overflow: hidden;
	color: var(--wp--preset--color--neutral-800);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--sm); /* 14px */
	line-height: 1.5;

	/*
	 * Two lines, then stop. The frame cuts the supporting copy off with an
	 * ellipsis rather than letting one long article push its card taller
	 * than the others beside it - and two is what its arithmetic gives: a
	 * card is 437.78 tall, of which 273.78 is the photograph and 164 the
	 * body, and that leaves room for a two-line title and two lines here.
	 */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/*
 * Four, where there is no photograph: the words are bigger and there is a
 * card's worth of space for them to fill.
 */
.pchs-card-article--no-image .pchs-card-article__excerpt {
	font-size: var(--wp--preset--font-size--lg); /* 20px */
	font-weight: 300;
	line-height: 1.36;
	letter-spacing: var(--wp--custom--tracking--tight);

	/* Three on a phone, four from 768 up - the frames give this card 338 at
	   390 wide and 358 at 768, and one line of this is the difference. */
	-webkit-line-clamp: 3;
}

/* The gold disc at the corner. Decoration: the card's link does the work. */
.pchs-card-article__arrow {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--gold-400);
	color: var(--wp--preset--color--neutral-800);
	transition: transform 0.2s ease;
}

.pchs-card-article:hover .pchs-card-article__arrow {
	transform: translateX(2px);
}


/* ------------------------------------------------------------
   Pagination
   Figma node I2216:2270;6500:3255.
   ------------------------------------------------------------ */

.pchs-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20); /* 20px */
	margin-top: var(--wp--preset--spacing--40);
}

.pchs-pagination .page-numbers {
	display: inline-flex;
	min-width: 20px;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;
	line-height: 20px; /* 16 x 1.24 */
	text-align: center;
	text-decoration: none;
}

.pchs-pagination a.page-numbers:hover,
.pchs-pagination a.page-numbers:focus-visible {
	text-decoration: underline;
}

/* The page you are on. The frame does not draw this state, so it is marked
   the quietest way that still reads at a glance. */
.pchs-pagination .page-numbers.current {
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Prev and Next, the only two with a line around them. Inset again, so they
   come out 44 tall rather than 48. */
.pchs-pagination .prev,
.pchs-pagination .next {
	gap: var(--wp--preset--spacing--8);
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
	border-radius: var(--wp--custom--radius--full);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--blue-500);
	font-size: var(--wp--preset--font-size--xs); /* 12px */
	font-weight: 700;
	line-height: 12px;
	letter-spacing: var(--wp--custom--tracking--wide); /* 0.08em */
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.pchs-pagination .prev:hover,
.pchs-pagination .next:hover,
.pchs-pagination .prev:focus-visible,
.pchs-pagination .next:focus-visible {
	background-color: var(--wp--preset--color--gray-500);
	text-decoration: none;
}

.pchs-pagination__arrow {
	display: inline-flex;
	width: 12px;
	height: 12px;
}

.pchs-pagination__arrow .pchs-triangle {
	width: 12px;
	height: 12px;
}

.pchs-pagination__arrow--prev .pchs-triangle {
	transform: rotate(90deg);
}

.pchs-pagination__arrow--next .pchs-triangle {
	transform: rotate(-90deg);
}


/* ------------------------------------------------------------
   768px and up
   Figma node 2216:2743.
   ------------------------------------------------------------ */

@media (min-width: 768px) {

	/* 80 against the band's 64 - the bar's clearance again. */
	.pchs-blog-hero {
		padding-bottom: var(--wp--preset--spacing--80);
	}

	.pchs-blog-hero__title {
		font-size: 56px;
		line-height: 56px;
	}

	/*
	 * The paragraph needs nothing here: .pchs-section-intro, which the band
	 * gives it, already steps to 20 at this width. The tablet frame gives
	 * it 120px over four lines at 688 wide, which is 20px type.
	 */

	.pchs-blog-head__bar {
		padding-inline: var(--wp--preset--spacing--20);
	}

	.pchs-blog-listing__inner {
		/* 64 from the frame, less the 34 the bar is pulled up by. */
		padding: 30px var(--wp--preset--spacing--40) var(--wp--preset--spacing--64);
	}

	.pchs-featured-article {
		flex-direction: row;

		/*
		 * Stretch, not centre: side by side, the frame makes the photograph
		 * as tall as the words beside it - 324 x 361 at this width, which is
		 * nothing like the 4:3 it keeps when it is stacked above them.
		 */
		align-items: stretch;
		gap: var(--wp--preset--spacing--40); /* 40px */
		margin-bottom: var(--wp--preset--spacing--64); /* 64px to the grid */
	}

	.pchs-featured-article__image,
	.pchs-featured-article__info {
		min-width: 0;
		flex: 1 1 0;
	}

	.pchs-featured-article__image {
		aspect-ratio: auto;
	}

	.pchs-featured-article__info {
		padding-block: var(--wp--preset--spacing--20); /* 20px */
	}

	.pchs-featured-article__excerpt {
		font-size: var(--wp--preset--font-size--lg); /* 20px */
	}

	.pchs-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--40); /* 40px */
	}

	.pchs-card-article--no-image .pchs-card-article__excerpt {
		-webkit-line-clamp: 4;
	}

	.pchs-pagination {
		margin-top: var(--wp--preset--spacing--64);
	}
}


/* ------------------------------------------------------------
   1024px and up
   The library's note: this is where the filter bar stops being
   a button and becomes a row.
   ------------------------------------------------------------ */

@media (min-width: 1024px) {

	.pchs-subnav {
		padding: var(--wp--preset--spacing--20); /* 20px: the bar is 84 tall */
		gap: var(--wp--preset--spacing--20);
	}

	.pchs-subnav__compact {
		display: none;
	}

	/*
	 * Back into the row. The categories, the overflow button and the sort
	 * control come out from behind the button; the search was never behind
	 * it and does not move.
	 */
	.pchs-subnav__panel {
		display: flex;
		min-width: 0;
		flex: 1 1 auto;
		align-items: center;
		justify-content: space-between;
		gap: var(--wp--preset--spacing--20);
	}

	/* The row is pulled up by half of 84 rather than half of 68. */
	.pchs-blog-head__bar {
		margin-top: -42px;
	}

	.pchs-blog-listing__inner {
		/* 64 from the frame, less the 42 the bar is now pulled up by. */
		padding-top: 22px;
	}

	.pchs-subnav__search input {
		width: 8em;
	}
}


/* ------------------------------------------------------------
   1200px and up
   Figma node 2040:1251.
   ------------------------------------------------------------ */

@media (min-width: 1200px) {

	.pchs-breadcrumb__inner,
	.pchs-blog-head__bar {
		padding-inline: var(--wp--preset--spacing--64);
	}

	/* 120 against the band's 80 - the deepest the bar's clearance gets. */
	.pchs-blog-hero {
		padding-bottom: 120px;
	}

	/*
	 * The words stop well short of the drawing on the right.
	 *
	 * The band already insets its 868 column by 80, which leaves exactly
	 * 788 - the same number - so this caps nothing it has not already
	 * capped. It is kept because 788 is what the frame states, and a later
	 * change to the band's inset should not silently widen this.
	 */
	.pchs-blog-hero__title,
	.pchs-blog-hero__intro {
		max-width: 788px;
	}

	.pchs-blog-listing__inner {
		/* The frame's 120, less the 42 the bar is pulled up by. */
		padding: 78px var(--wp--preset--spacing--64) var(--wp--preset--spacing--80);
	}

	.pchs-featured-article__title {
		font-size: 40px;
		line-height: 46px; /* 40 x 1.16 */
	}

	/*
	 * At this width the photograph is the taller of the two and sets the
	 * height of the row - 636 wide at 140:105 is 477, which is what the
	 * frame makes the whole block. Below 1200 it is the other way round and
	 * the words are taller, which is why they stretch it there.
	 */
	.pchs-featured-article {
		align-items: center;
	}

	.pchs-featured-article__image {
		aspect-ratio: 140 / 105;
	}

	.pchs-featured-article__info {
		padding-block: var(--wp--preset--spacing--40); /* 40px */
	}

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

	.pchs-card-article__title {
		font-size: var(--wp--preset--font-size--lg); /* 20px */
		line-height: 24px; /* 20 x 1.2 */
	}

	.pchs-card-article--no-image .pchs-card-article__title {
		font-size: 40px;
		line-height: 46px;
	}
}
