/**
 * Image and text block ("content third" in Figma).
 *
 * Figma: PAC-Page-Designs, page "Home Page"
 *   1440px  node 2001:1576   section 1440 x 478,    picture 424 x 318
 *   1199px  node 2001:1734   section 1199 x 503.67, picture 343.67 square
 *    768px  node 2001:1892   section  768 x 456,    picture 202.67 square
 *    390px  node 2001:2051   section  390 x 662.5,  picture 350 x 262.5
 *
 * Note the picture's shape: 4:3 at the widest and narrowest frames, square
 * at the two in between. That is what the frames measure, odd as it reads.
 * It matters less than it sounds, because the picture is shown with
 * object-fit: contain - these are accreditation logos, and cropping one to
 * fill a frame would cut it - so the shape only decides how much space
 * surrounds them.
 */

.pchs-content-third {
	position: relative;
	display: grid;
	gap: var(--wp--preset--spacing--40);
	/* Plus the gutter, so that past 1440 the contents line up with the rest
	   of the page while the background still fills the screen. */
	padding: var(--pchs-section-py) calc(var(--pchs-section-px) + var(--pchs-page-gutter));
	/* Contains the texture's stacking. */
	isolation: isolate;
	background-color: var(--wp--preset--color--yellow-500);
}

/* The faint texture over the gold. On a pseudo-element rather
   than a second background layer, because it is drawn at 60%
   opacity and a background layer cannot carry its own. */
.pchs-content-third::before {
	position: absolute;
	z-index: 0;
	content: "";
	inset: 0;
	background-image: var(--pchs-content-third-pattern, none);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	opacity: 0.6;
	/* Keeps the texture reading as tone on the gold rather than
	   as a picture laid over it. */
	mix-blend-mode: luminosity;
	pointer-events: none;
}

.pchs-content-third__media,
.pchs-content-third__info {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.pchs-content-third__media {
	/*
	 * No box-shadow, no rounded corners, no clipping here - and that is
	 * deliberate.
	 *
	 * The picture is a PNG that is about a quarter transparent: four white
	 * cards floating on nothing. A box-shadow is cast by the element's
	 * rectangle whatever is drawn inside it, so putting one here drew a
	 * shadowed panel around the whole picture - a container the design does
	 * not have. Figma's drop shadow follows the image's own alpha instead,
	 * giving each card its own shadow. filter: drop-shadow on the image, set
	 * below, is the equivalent that behaves the same way.
	 */
}

.pchs-content-third__image {
	display: block;
	width: 100%;
	/* height:auto hands control to aspect-ratio. Without it the
	   width and height attributes WordPress writes on the tag win
	   as presentation hints and the ratio is ignored. */
	height: auto;
	aspect-ratio: 140 / 105; /* 4:3 */
	/* The frames differ here: cover on a phone, contain above it.
	   The picture is only a shade narrower than its frame, so
	   cover crops about 2.5% rather than cutting into a logo, and
	   contain leaves a thin margin at the sides. Small as that
	   difference is, it scales all the fine lettering inside the
	   logos, which is enough to show plainly in a comparison. */
	object-fit: cover;
	/* Follows the picture's transparency, so each card is shadowed rather
	   than the rectangle around them all. Same values as the shared
	   shadow-lg token, written out because a filter cannot take a
	   box-shadow string. */
	filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

.pchs-content-third__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.pchs-content-third__titles {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--12);
}

.pchs-content-third__eyebrow,
.pchs-content-third__heading {
	color: var(--wp--preset--color--blue-500);
}

/* The paragraph is .pchs-section-intro in the theme stylesheet,
   shared with the other section that uses the same treatment.
   Nothing specific to this section needs adding. */

.pchs-content-third__actions {
	margin: 0;
}


/* ------------------------------------------------------------
   768px and up
   Figma nodes 2001:1892, 2001:1734, 2001:1576.

   Picture and text sit side by side, four columns and eight of
   a twelve-column grid. The picture keeps its own height while
   the text column stretches to match, so the text can centre
   itself against the picture.
   ------------------------------------------------------------ */

@media (min-width: 768px) {

	.pchs-content-third {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--pchs-grid-gap);
	}

	.pchs-content-third__media {
		grid-column: 1 / span 4;
		grid-row: 1;
		align-self: start;
	}

	.pchs-content-third__info {
		grid-column: 5 / span 8;
		grid-row: 1;
		justify-content: center;
	}

	/* Square between 768 and 1199 - see the note at the top. */
	.pchs-content-third__image {
		aspect-ratio: 1 / 1;
		/* Whole rather than cropped once there is room. Checked
		   rather than assumed: cover here looked closer by eye but
		   scored 3.7% at 1440 against 1.2% for contain, and 8.2%
		   against 2.0% at 1199. */
		object-fit: contain;
	}

}


/* ------------------------------------------------------------
   1024px and up
   Figma nodes 2001:1734 and 2001:1576.

   The text column gains its inset: measured as 40 on the left
   and 80 on the right, from an info frame 868 wide holding text
   748 wide.
   ------------------------------------------------------------ */

@media (min-width: 1024px) {

	.pchs-content-third__info {
		max-width: 868px;
		padding-right: var(--wp--preset--spacing--80);
		padding-left: var(--wp--preset--spacing--40);
	}
}


/* ------------------------------------------------------------
   1200px and up
   Figma node 2001:1576.

   The picture returns to 4:3.
   ------------------------------------------------------------ */

@media (min-width: 1200px) {

	.pchs-content-third__image {
		aspect-ratio: 140 / 105;
	}
}


/* Wider than the design: handled by --pchs-page-gutter in the padding at the
   top of this file, which needs no breakpoint. */


/* ============================================================
   The HALF layout ("content half" in Figma)

   Figma: PAC-Page-Designs, page "Financial Aid"
     1440px  node 3094:21227   section 1440 x 628,   picture 468 tall
      768px  node 3094:21251   section  768 x 680,   picture fills the row
      390px  node 3094:21275   section  390 x 746.5, picture 4:3, above

   Same markup as above; everything below is what differs. The picture is a
   photograph here rather than a logo, so it is cropped to fill, rounded and
   shadowed - and it sits on the RIGHT, which is grid placement rather than a
   change of document order.

   Padding is left alone: --pchs-section-px / --pchs-section-py already step
   20/40, 40/64 and 64/80, which is exactly what these three frames measure.
   ============================================================ */

.pchs-content-third--half {
	gap: var(--wp--preset--spacing--40); /* 40px, as 390 and 768 */
	background-color: var(--wp--preset--color--white);
	/* Figma redraws this gradient per frame - 117.92deg at 390, 138.89 at 768,
	   156.74 at 1440 - because it is defined by two points on a box that
	   changes shape. The angle is set per breakpoint below to match. */
	background-image: linear-gradient(
		117.92deg,
		var(--wp--preset--color--gray-200) 0%,
		var(--wp--preset--color--white) 50.36%
	);
}

/*
 * The ginkgo strip: full width, sitting on the bottom edge, at 40%. The
 * artwork is 1440 x 361, and every frame draws it at the full width of the
 * section with its own aspect kept - so one `100% auto` covers all three and
 * no breakpoint needs a height.
 *
 * No blend mode here, unlike the gold layout: this one is drawn over white
 * rather than over a colour it has to read as tone on.
 */
.pchs-content-third--half::before {
	background-position: center bottom;
	background-size: 100% auto;
	opacity: 0.4;
	mix-blend-mode: normal;
}

.pchs-content-third--half .pchs-content-third__image {
	aspect-ratio: 350 / 262.5; /* 4:3, as the 390 frame */
	border-radius: var(--wp--custom--radius--lg); /* 24px */
	object-fit: cover;
	/* A photograph fills its rectangle, so the shadow belongs on the box.
	   The gold layout uses drop-shadow instead because its picture is a
	   transparent PNG - see the note on .pchs-content-third__media. */
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
	filter: none;
}

/* The whole heading is the heavy weight here, where the shared
   .pchs-heading-2 is light with only marked words going heavy. */
.pchs-content-third--half .pchs-content-third__heading {
	font-size: 40px;
	font-weight: 600;
	line-height: 1; /* the frames lay H1 out on exactly its size */
}

/* The paragraph needs nothing: .pchs-section-intro is already blue-800 Work
   Sans 400 at 16/24 then 20/30, which is what all three frames measure. */


@media (min-width: 768px) {

	.pchs-content-third--half {
		background-image: linear-gradient(
			138.89deg,
			var(--wp--preset--color--gray-200) 0%,
			var(--wp--preset--color--white) 50.36%
		);
		align-items: center;
		column-gap: var(--wp--preset--spacing--40); /* 40px */
	}

	/* Half and half, and the picture on the right. The gold layout's 4/8
	   split is overridden rather than inherited. */
	.pchs-content-third--half .pchs-content-third__info {
		grid-column: 1 / span 6;
		max-width: none;
		padding: 0;
	}

	.pchs-content-third--half .pchs-content-third__media {
		grid-column: 7 / span 6;
		align-self: stretch;
	}

	/* Fills the row, whose height the words set at this width. */
	.pchs-content-third--half .pchs-content-third__image {
		height: 100%;
		aspect-ratio: auto;
	}

	.pchs-content-third--half .pchs-content-third__heading {
		font-size: 56px;
		line-height: 1;
	}
}


@media (min-width: 1024px) {

	.pchs-content-third--half {
		column-gap: var(--wp--preset--spacing--64); /* 64px, as the 1440 frame */
	}

	/*
	 * From here the picture stops following the words and takes its own
	 * height, centred - so the section is as tall as the picture rather than
	 * as tall as the copy. At 1440 that is what makes it 628: 468 plus 80
	 * top and bottom.
	 */
	.pchs-content-third--half .pchs-content-third__media {
		height: 468px;
		align-self: center;
	}
}


@media (min-width: 1200px) {

	.pchs-content-third--half {
		background-image: linear-gradient(
			156.74deg,
			var(--wp--preset--color--gray-200) 0%,
			var(--wp--preset--color--white) 50.36%
		);
	}
}


/* ============================================================
   The HALF layout's DEEP tone, and the picture on the left

   Figma: PAC-Page-Designs, Holistic Nursing
     picture right, no badge
       1440px node 2934:27252  (1440 x 652)
        768px node 2934:27524  ( 768 x 970)
        390px node 2936:30087  ( 390 x 1094.5)
     picture left, with the AHNCC badge
       1440px node 2934:27258  (1440 x 640)
        768px node 2934:27530  ( 768 x 970)
        390px node 2936:30093  ( 390 x 1167.5)

   The pale tone above is Financial Aid's. This one reverses the
   section out of a blue gradient and drops the pale tone's two
   decorations - the ginkgo strip and the heavier 40/56 heading -
   so it reads with the theme's ordinary H2 ramp, 32/40/48.

   Everything structural is shared with the pale tone. Only the
   colours, the heading ramp and which column the picture is in
   are written here.
   ============================================================ */

/*
 * With the picture on the right the band runs light to dark across its
 * width - 90.29deg, a quarter of a degree off horizontal, which is what
 * the 1440 frame draws. It needs no breakpoint: a gradient that runs along
 * one axis looks the same whatever shape the box is, and sampling the 768
 * and 390 exports confirms it - both read blue-300 at the left edge and
 * blue-800 at the right, top and bottom alike.
 */
.pchs-content-third--tone-deep {
	background-color: var(--wp--preset--color--blue-500);
	background-image: linear-gradient(
		90.2889deg,
		var(--wp--preset--color--blue-300) 0%,
		var(--wp--preset--color--blue-600) 50%,
		var(--wp--preset--color--blue-800) 100%
	);
}

/*
 * With the picture on the LEFT it runs the other way AND diagonally, dark
 * at the bottom-left to light at the top-right. That is a different
 * drawing rather than a mirror of the one above, and it is the only other
 * one the design has - so it is tied to which side the picture is on.
 *
 * A diagonal is defined by two points on a box, so its angle changes as
 * the box does and has to be restated per breakpoint, exactly as the pale
 * tone's does. 43.716deg is Figma's own value at 1440 x 640; the other two
 * follow from it, because the handle keeps its place in the box as the box
 * is resized - 2.1515 x height / width, as a tangent.
 *
 * Checked against the exports rather than trusted: at 768 the predicted
 * angle puts the top-left corner 31.8% along the gradient, and the frame's
 * own pixel there is 31%.
 */
.pchs-content-third--tone-deep.pchs-content-third--image-left {
	background-image: linear-gradient(
		81.2deg,
		var(--wp--preset--color--blue-800) 0%,
		var(--wp--preset--color--blue-600) 50%,
		var(--wp--preset--color--blue-300) 100%
	);
}

/* No ginkgo on this tone. The default strip is only attached to the pale
   one in render.php; this is here so that an editor who uploads a pattern
   by mistake does not get one. */
.pchs-content-third--tone-deep::before {
	background-image: none;
}

.pchs-content-third--tone-deep .pchs-content-third__eyebrow,
.pchs-content-third--tone-deep .pchs-content-third__heading,
.pchs-content-third--tone-deep .pchs-content-third__body,
.pchs-content-third--tone-deep .pchs-content-third__more {
	color: var(--wp--preset--color--white);
}

/*
 * Back to the shared heading. The pale tone sets 40px/600/line-height 1
 * above, and this tone is the plain .pchs-heading-2 ramp instead - light
 * with marked words going heavy, 32 then 40 then 48, on 1.16. Written as
 * `inherit`-free explicit values because undoing a rule by restating the
 * shared one is clearer than raising specificity somewhere else.
 */
.pchs-content-third--half.pchs-content-third--tone-deep .pchs-content-third__heading {
	font-size: 32px; /* Figma 2936:30093, title box 37 = 32 x 1.16 */
	font-weight: 300;
	line-height: 1.16;
}

.pchs-content-third--tone-deep .pchs-content-third__heading .pchs-em {
	font-weight: 600;
}

/*
 * 16px at every width, where .pchs-section-intro steps up to 20 at 768.
 * The 1440 frame names Body/Medium - 16 on 1.5 - and the two smaller
 * frames measure the same.
 */
.pchs-content-third--tone-deep .pchs-content-third__body,
.pchs-content-third--tone-deep .pchs-content-third__more {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
}

/*
 * A link in this copy is set in the heavier weight and underlined, keeping
 * the white it sits in - node I2934:27258;6340:5059 draws www.ahncc.org
 * that way. The theme's ordinary link style would give it blue-500, which
 * on this band is nearly the band itself; theme.json's `:root :where(a)`
 * carries one class of specificity, so naming two classes beats it.
 *
 * No external-link glyph here, unlike the FAQ's answers: the frame draws
 * none, and the convention is a site-wide one rather than a universal one.
 */
.pchs-content-third--tone-deep .pchs-content-third__body a,
.pchs-content-third--tone-deep .pchs-content-third__more a,
.pchs-content-third--tone-deep .pchs-content-third__body a:hover,
.pchs-content-third--tone-deep .pchs-content-third__more a:hover {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-position: from-font;
}

/* Paragraph to paragraph is 24, where the column's other gaps are 20. */
.pchs-content-third__more {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.pchs-content-third__more > * {
	margin: 0;
}

/* The photograph needs nothing: the half layout above already rounds it,
   shadows it as a box and crops it to fill, which is the same treatment
   both tones draw. */


/* ------------------------------------------------------------
   The badge beside the heading
   Figma node I2934:27258;6841:1282.

   Above the heading below 1024 at 120px square, and beside it
   at 1440 at 132. 16px between them either way.
   ------------------------------------------------------------ */

.pchs-content-third__headline {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--16);
}

.pchs-content-third__logo {
	width: 120px; /* Figma 2936:30093 and 2934:27530 */
	height: 120px;
	flex-shrink: 0;
	/* contain, not cover: a badge cropped to fill its box is a badge with
	   its lettering cut off. */
	object-fit: contain;
}


@media (min-width: 768px) {

	.pchs-content-third--half.pchs-content-third--tone-deep .pchs-content-third__heading {
		font-size: 40px; /* Figma 2934:27530, title box 46 = 40 x 1.16 */
		line-height: 1.16;
	}

	.pchs-content-third--tone-deep.pchs-content-third--image-left {
		background-image: linear-gradient(
			69.8deg,
			var(--wp--preset--color--blue-800) 0%,
			var(--wp--preset--color--blue-600) 50%,
			var(--wp--preset--color--blue-300) 100%
		);
	}

	/*
	 * THE PICTURE IS TAKEN OUT OF THE FLOW SO THAT THE WORDS DECIDE THE
	 * HEIGHT.
	 *
	 * The pale tone sizes it with `height: 100%` on an image inside a
	 * stretched column. That is a cycle - the column is as tall as the
	 * image, the image is as tall as the column - and Chromium resolves it
	 * by falling back to a number that is neither: on the AHNCC section it
	 * came out 1500px tall against the frame's 468, which made the whole
	 * band 1660 instead of 640. It happens to settle on the right answer
	 * for the other section, which is why it survived on Financial Aid.
	 *
	 * Absolutely positioned, the picture contributes nothing to the row's
	 * height, so the row is exactly as tall as the words and the picture
	 * then fills it. That is what both frames draw at 768, and within four
	 * pixels of what they draw at 1440.
	 */
	.pchs-content-third--tone-deep .pchs-content-third__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
		object-fit: cover;
	}

	/*
	 * The picture on the left instead of the right. Only the grid columns
	 * change: the document order is the same either way, so a screen
	 * reader hears the words before the picture in both.
	 */
	.pchs-content-third--image-left .pchs-content-third__info {
		grid-column: 7 / span 6;
	}

	.pchs-content-third--image-left .pchs-content-third__media {
		grid-column: 1 / span 6;
	}
}


@media (min-width: 1024px) {

	.pchs-content-third--half.pchs-content-third--tone-deep .pchs-content-third__heading {
		font-size: var(--wp--preset--font-size--xxl); /* 48px */
		line-height: 1.16;
	}

	.pchs-content-third--tone-deep.pchs-content-third--image-left {
		background-image: linear-gradient(
			43.7162deg, /* Figma 2934:27258 */
			var(--wp--preset--color--blue-800) 0%,
			var(--wp--preset--color--blue-600) 50%,
			var(--wp--preset--color--blue-300) 100%
		);
	}

	/*
	 * The picture follows the words rather than taking a height of its
	 * own, which is what the component's own code says - its image frame
	 * is self-stretch and fills its column. The pale tone fixes 468px
	 * instead, because Financial Aid's frame draws it that way.
	 */
	.pchs-content-third--tone-deep .pchs-content-third__media {
		height: auto;
		align-self: stretch;
	}

	/* Beside the heading here, and a little larger. */
	.pchs-content-third__headline {
		flex-direction: row;
		align-items: center;
	}

	.pchs-content-third__logo {
		width: 132px; /* Figma I2934:27258;6841:1282 */
		height: 132px;
	}
}


/* ============================================================
   The FULL layout ("content third full" in Figma)

   Figma: PAC-Page-Designs, page "Nursing-PBSN"
     1440px  node 2329:13676   section 1440 x 412,   picture 466.67 x 412
      768px  node 2332:14520   section  768 x 488,   picture 229.33 x 488
      390px  node 2418:9465    section  390 x 794.5, picture 390 x 292.5

   The deep tone turned inside out. The band is the same blue gradient with
   the words reversed out of it, but the picture reaches the top, bottom and
   left edges instead of sitting inside the section's padding - so the
   section itself carries no padding at all and the words carry their own.

   The picture on BS in Nursing is a transparent ginkgo drawing rather than a
   photograph, which is why it is not rounded, shadowed or cropped away from
   the edges: the band's gradient is meant to show through it, and the seam
   at the end of its column is meant to be invisible.
   ============================================================ */

.pchs-content-third--full {
	/*
	 * No gap of its own. The shared rules above already set 40 between the
	 * words and the picture on a phone and --pchs-grid-gap - 40, then 20
	 * from 1024 - between the columns above that, which is what all three
	 * frames measure. Writing `gap` here would be a shorthand and would
	 * quietly reset the column gap to 40 at every width.
	 */
	/*
	 * No padding of its own: the picture reaches the edges. Past 1440 the
	 * gutter holds the grid to the design's width while the gradient still
	 * fills the screen, exactly as the banner does - and because the picture
	 * is transparent, the gradient either side of it reads as one band.
	 */
	padding: 0 var(--pchs-page-gutter);
	background-color: var(--wp--preset--color--blue-500);
	/*
	 * 90.46deg at 1440, 90.21 at 768, 90.06 at 390 - Figma redraws it per
	 * frame because it is two points on a box. A third of a degree off
	 * horizontal is a sub-pixel difference across 1440, so one value serves
	 * all three.
	 */
	background-image: linear-gradient(
		90.3deg,
		var(--wp--preset--color--blue-300) 0%,
		var(--wp--preset--color--blue-500) 50%,
		var(--wp--preset--color--blue-800) 100%
	);
}

/* No texture on this band. Here rather than only in render.php so that an
   editor who uploads one by mistake does not get one. */
.pchs-content-third--full::before {
	background-image: none;
}

/*
 * The picture goes UNDER the words on a phone, where the half layout puts it
 * above them. Only the order changes, so a screen reader still hears the
 * words first at every width, as it does in the other two layouts.
 */
.pchs-content-third--full .pchs-content-third__media {
	order: 2;
}

.pchs-content-third--full .pchs-content-third__image {
	aspect-ratio: 140 / 105; /* 4:3, as the 390 frame */
	border-radius: 0;
	object-fit: cover;
	box-shadow: none;
	/* The gold layout's drop-shadow would outline every vein of the
	   drawing. The frames draw none. */
	filter: none;
}

/*
 * The words carry the section's padding, because the section has none.
 *
 * Top is --pchs-section-py like any other section, NOT the 120 the 1440
 * frame measures: that 120 is the jump-links bar's clearance, which
 * .pchs-jumplinks + .alignfull sets on whichever section follows the bar.
 * Writing it here as well would double it on a page without the bar.
 *
 * The 390 frame has no padding under the words at all - the picture is
 * flush beneath them - so the bottom only appears from 768 up.
 */
.pchs-content-third--full .pchs-content-third__info {
	padding: var(--pchs-section-py) var(--pchs-section-px) 0;
}

/*
 * THE JUMP LINKS BAR'S CLEARANCE GOES INSIDE THE WORDS HERE.
 *
 * .pchs-jumplinks + .alignfull puts it on the section, which is right for
 * every other section on the site. Not for this one: the picture reaches
 * the section's top edge, so padding there would push the picture down with
 * the words. The bar's own stylesheet publishes the measurement as
 * --pchs-jumplinks-clearance so that this can take it instead.
 *
 * Three classes, so it beats both that rule and the one above whichever
 * stylesheet the browser happens to apply last.
 */
.pchs-jumplinks + .pchs-content-third.pchs-content-third--full {
	padding-top: 0;
}

.pchs-jumplinks + .pchs-content-third--full .pchs-content-third__info {
	padding-top: var(--pchs-jumplinks-clearance);
}

/*
 * 16 BETWEEN PARAGRAPHS, not the 24 the generated code names.
 *
 * Node I2329:13676;6605:1590 reports `margin-bottom: 24px` on its first
 * paragraph, but what it draws is a step of 40 from the last line of one
 * paragraph to the first line of the next - and the line box is 24, which
 * leaves 16. Measured off the export: the lines sit at y 201, 225, 249,
 * then 289 and 314. Taking Figma at its word put every line of the second
 * paragraph 8px low and made the section 420 tall against its 412.
 *
 * The -4 takes the column's own 20px gap down to the same 16.
 */
.pchs-content-third--full .pchs-content-third__more {
	margin-top: -4px;
	gap: var(--wp--preset--spacing--16);
}

.pchs-content-third--full .pchs-content-third__eyebrow,
.pchs-content-third--full .pchs-content-third__heading,
.pchs-content-third--full .pchs-content-third__body,
.pchs-content-third--full .pchs-content-third__more {
	color: var(--wp--preset--color--white);
}

/*
 * 16px at every width, where .pchs-section-intro steps up to 20 at 768. All
 * three frames name Body/Medium - 16 on 1.5 - and measure it.
 */
.pchs-content-third--full .pchs-content-third__body,
.pchs-content-third--full .pchs-content-third__more {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 400;
	line-height: 1.5;
	/*
	 * NORMAL, although the frames report -0.4px here and -0.32 at 390.
	 *
	 * Measured rather than trusted: the first line of the 1440 frame's
	 * subcopy runs from x 528 to 1327, 800 pixels of ink, and Work Sans sets
	 * those same words in 799.03 at normal tracking and 767.36 at -0.02em.
	 * At the tighter value an extra word fits on the line and every line
	 * after it breaks in the wrong place. The deep tone above reaches the
	 * same conclusion from its own frames.
	 */
	letter-spacing: normal;
}

/* As the deep tone: a link keeps the white it sits in and goes heavy, since
   the theme's blue-500 would all but vanish into this band. Two classes to
   beat theme.json's `:root :where(a)`. */
.pchs-content-third--full .pchs-content-third__body a,
.pchs-content-third--full .pchs-content-third__more a,
.pchs-content-third--full .pchs-content-third__body a:hover,
.pchs-content-third--full .pchs-content-third__more a:hover {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-position: from-font;
}


@media (min-width: 768px) {

	/*
	 * Four columns of twelve for the picture, eight for the words - the same
	 * split as the gold layout, which the shared rules above have already
	 * set. Only what differs is written here.
	 */
	.pchs-content-third--full .pchs-content-third__media {
		order: 0;
		align-self: stretch;
		/* The picture is larger than its column at this width - see the
		   rule below - so the column has to cut it off. */
		overflow: hidden;
	}

	/*
	 * Out of the flow, so the words alone decide how tall the row is and the
	 * picture then fills it. `height: 100%` on an image in a stretched grid
	 * item is a cycle - see the long note on the deep tone, where it resolved
	 * to 1500px against a frame's 468.
	 */
	.pchs-content-third--full .pchs-content-third__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: auto;
	}

	/*
	 * THE 768 FRAME DOES NOT USE `cover` HERE, AND IT DOES NOT KEEP THE
	 * DRAWING'S PROPORTIONS.
	 *
	 * Node I2332:14520;6605:1601 draws it 159.41% of the column wide, at
	 * left -59.42%, filling the column's height - which stretches it about
	 * 5% sideways. That reads as a designer's crop rather than a mistake:
	 * what it frames is the right-hand leaf, whole, against the column's
	 * right edge.
	 *
	 * Scored rather than guessed, against the column cut out of the frame
	 * export - try-ginkgo.mjs in the harness. This comes to 4.6% where
	 * `cover` pinned right comes to 11.9 and `cover` centred to 17.4. 1440
	 * and 390 are both plain `cover`, so this is closed off again at 1024.
	 */
	.pchs-content-third--full .pchs-content-third__image {
		left: -59.42%;
		right: auto;
		width: 159.41%;
		/* The theme caps every picture at the width of its container. This
		   one is deliberately wider, and without this it is quietly held at
		   100% and both leaves shrink into the column. */
		max-width: none;
		object-fit: fill;
	}

	.pchs-content-third--full .pchs-content-third__info {
		/* No left padding at this width: the 40px column gap is the whole
		   separation from the picture. Figma I2332:14520;6605:1593. */
		padding: var(--pchs-section-py) var(--pchs-section-px) var(--pchs-section-py) 0;
	}
}


@media (min-width: 1024px) {

	/* Back to plain `cover`, which is what the 1440 frame draws. */
	.pchs-content-third--full .pchs-content-third__image {
		left: 0;
		right: 0;
		width: 100%;
		object-fit: cover;
	}

	/*
	 * 40 on the left from here - Figma I2329:13676;6605:1585, which measures
	 * pl 40 against the 20px column gap. Right stays --pchs-section-px, which
	 * is the 64 the frame draws.
	 */
	.pchs-content-third--full .pchs-content-third__info {
		max-width: none;
		padding: var(--pchs-section-py) var(--pchs-section-px) var(--pchs-section-py)
			var(--wp--preset--spacing--40);
	}
}


/* Wider than the design: handled by --pchs-page-gutter in the padding at the
   top of this layout, which needs no breakpoint. */


/* ============================================================
   The THIRD layout's WHITE tone
   Figma: PAC-Page-Designs, page "Nursing-PBSN"
     1440px  node 2368:2413   section 1440 x 724
      768px  node 2368:3996   section  768 x 913
      390px  node 3153:10913  section  390 x 1089.5

   The same four-and-eight split as the gold band, in white,
   with a photograph instead of a logo: cropped to fill, rounded
   and shadowed, and TALLER than it is wide from a tablet up.

   Figma stacks an opaque white fill over the gold gradient
   here, so the gold never shows. The band is simply white -
   noted in case the design later lowers that opacity.
   ============================================================ */

.pchs-content-third--tone-white {
	background-color: var(--wp--preset--color--white);
}

/* No texture over the white, whatever has been uploaded. */
.pchs-content-third--tone-white::before {
	background-image: none;
}

/*
 * A photograph, so it fills its box and is rounded and shadowed on the box
 * rather than on its own alpha - the opposite of the gold band's logos, and
 * the same treatment the half layout gives its photograph.
 */
.pchs-content-third--tone-white .pchs-content-third__image {
	border-radius: var(--wp--custom--radius--lg); /* 24px */
	box-shadow: var(--wp--preset--shadow--lg);
	object-fit: cover;
	filter: none;
}

.pchs-content-third--tone-white .pchs-content-third__body,
.pchs-content-third--tone-white .pchs-content-third__more {
	/* Figma names Neutral/800 here, where .pchs-section-intro is blue-800. */
	color: var(--wp--preset--color--neutral-800);
	/*
	 * -0.01em, which is not a value anything in the design names.
	 *
	 * The four bands that use this tone disagree about tracking at 390.
	 * At the theme's -0.02em the NCLEX band wraps a line short of its
	 * frame; at none, the campus band wraps a line long. Halfway between
	 * puts all four on their frames exactly, at 1089.5, 788.5, 692.5 and
	 * 836.5, and leaves 1440 and 768 where they already were.
	 *
	 * So it is a measured value rather than a chosen one. What it really
	 * says is that Figma's own tracking here is somewhere between the two,
	 * which DESIGN-QUESTIONS.md asks about.
	 */
	letter-spacing: -0.01em;
}

/*
 * The paragraphs after the first are inner blocks, so they start as ordinary
 * body copy. The frames set every paragraph of a subcopy the same -
 * .pchs-section-intro's 16 then 20 - and the difference only shows where the
 * words are taller than the picture, which is one of the four bands.
 */
.pchs-content-third--tone-white .pchs-content-third__more {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 400;
	line-height: 24px; /* 16 x 1.5 */
	letter-spacing: var(--wp--custom--tracking--tight);
}

/*
 * A FULL BLANK LINE between paragraphs, which is 24 at this width and 30
 * from a tablet up - one line of the copy either way. Node
 * I2368:2413;6086:325 is one text box with blank lines in it, and its lines
 * step 30 within a paragraph and 60 across one.
 *
 * The column's own gap is 20, so the first of these makes up the
 * difference and the second spaces the rest.
 */
.pchs-content-third--tone-white .pchs-content-third__more {
	margin-top: var(--wp--preset--spacing--4); /* 20 + 4 = 24 */
	gap: var(--wp--preset--spacing--24);
}


@media (min-width: 768px) {

	.pchs-content-third--tone-white .pchs-content-third__more {
		margin-top: var(--wp--preset--spacing--10); /* 20 + 10 = 30 */
		gap: 30px;
		font-size: var(--wp--preset--font-size--lg); /* 20px */
		line-height: 30px; /* 20 x 1.5 */
	}

	/*
	 * THE PICTURE'S SHAPE IS CHOSEN PER SECTION FROM HERE.
	 *
	 * The four sections that use this tone on BS in Nursing draw their
	 * pictures 3:4, 4:3, 16:9 and 5:4 - the designer sized each one to its
	 * photograph. render.php writes the chosen one into the property; 4:3
	 * is the fallback, which is also what every 390 frame draws and what
	 * the rule above this media query leaves in place below 768.
	 */
	.pchs-content-third--tone-white .pchs-content-third__image {
		aspect-ratio: var(--pchs-content-third-ratio, 140 / 105);
		height: auto;
		object-fit: cover;
	}

	/*
	 * Which side the picture is on. The half layout's own rules for this
	 * split the row down the middle, so both sides are restated here - with
	 * three classes, which beats them whichever stylesheet loads last.
	 *
	 * Picture right: the words take the first eight columns with 40 between
	 * them and the picture, and the picture is inset 20 from the left of its
	 * own column - node I2005:3745;6188:1632 draws it 404 wide in a 424
	 * column.
	 */
	.pchs-content-third--tone-white.pchs-content-third--image-left .pchs-content-third__media {
		grid-column: 1 / span 4;
	}

	.pchs-content-third--tone-white.pchs-content-third--image-left .pchs-content-third__info {
		grid-column: 5 / span 8;
	}

	.pchs-content-third--tone-white.pchs-content-third--image-right .pchs-content-third__media {
		grid-column: 9 / span 4;
		padding-left: var(--wp--preset--spacing--20);
	}

	.pchs-content-third--tone-white.pchs-content-third--image-right .pchs-content-third__info {
		grid-column: 1 / span 8;
		max-width: none;
		padding: 0 var(--wp--preset--spacing--40) 0 0;
	}
}


/* ------------------------------------------------------------
   768px to 1023px: THE WORDS FLOW ROUND THE PICTURE
   Figma node 2368:3996.

   This is the only section on the site that does it. The frame
   puts the heading and the first part of the copy in a 324-wide
   column beside the picture and then continues the SAME
   paragraph full width underneath it - there is no second text
   field, the text simply runs past the bottom of the picture.

   That is a float, so the grid is put aside here and the
   picture floated. A flex box does not flow round a float - it
   establishes its own block formatting context and shrinks
   beside it instead - so the column and its two groups are laid
   out as blocks at this width, with margins where the gaps
   were.
   ------------------------------------------------------------ */

@media (min-width: 768px) and (max-width: 1023px) {

	.pchs-content-third--tone-white {
		display: block;
	}

	.pchs-content-third--tone-white .pchs-content-third__media {
		float: left;
		width: 47.0930%; /* 324 of the 688 between the section's margins */
		margin-right: var(--wp--preset--spacing--40);
	}

	/* The picture floats to whichever side it is on at the wider sizes -
	   nodes 2415:9216 and 2415:9243 put it on the right, 2368:3996 and
	   2415:9230 on the left. */
	.pchs-content-third--tone-white.pchs-content-third--image-right .pchs-content-third__media {
		float: right;
		margin-right: 0;
		margin-left: var(--wp--preset--spacing--40);
	}

	.pchs-content-third--tone-white .pchs-content-third__info,
	.pchs-content-third--tone-white .pchs-content-third__titles,
	.pchs-content-third--tone-white .pchs-content-third__more {
		display: block;
		max-width: none;
		padding: 0;
	}

	.pchs-content-third--tone-white .pchs-content-third__body {
		margin-top: var(--wp--preset--spacing--20);
	}

	.pchs-content-third--tone-white .pchs-content-third__more {
		margin-top: 30px;
	}

	.pchs-content-third--tone-white .pchs-content-third__more > * + * {
		margin-top: 30px;
	}

	/* Whatever the words leave, the band still has to clear the picture. */
	.pchs-content-third--tone-white::after {
		display: block;
		clear: both;
		content: "";
	}
}


@media (min-width: 1024px) {

	/*
	 * Back to the grid, with the words centred against the picture - which
	 * is what makes the 1440 band 724: 160 of padding and a 565-tall
	 * photograph, the words being shorter than that.
	 *
	 * 80 on the right and 40 on the left, which the shared 1024 rule above
	 * already sets for the gold band.
	 */
	.pchs-content-third--tone-white .pchs-content-third__media {
		align-self: start;
	}
}
