/**
 * Water Wheel archive.
 *
 * Scoped under `.wrc-waterwheel`, a body class added only on the Water Wheel page
 * and on a single issue (ww_body_class() in inc/water-wheel-front.php), so nothing
 * here reaches the Elementor header, the footer, or any other page.
 *
 * Palette and Montserrat come from the same tokens wrc-article.css,
 * wrc-innovations.css and wrc-watersa.css use. The dark title band, breadcrumbs and
 * headings are the parent theme's, untouched.
 *
 * Width: the brief asks for ~1400px, so unlike Water SA (which follows the
 * homepage's 1650px) this archive caps at 1400px, centred, on one shared inset.
 */

/* ==========================================================================
 * 1. Tokens
 * ========================================================================== */

.wrc-waterwheel {
	--ww-blue:      #094E9C;
	--ww-lightblue: #00AEEF;
	--ww-green:     #A9CC4F;
	--ww-white:     #FFFFFF;

	--ww-ink:       #16202C;
	--ww-ink-soft:  #4A5764;
	--ww-grey-bg:   #F4F7FA;
	--ww-grey-line: #E1E8EF;

	--ww-radius:    12px;
	--ww-radius-sm: 8px;
	--ww-shadow:    0 1px 2px rgba( 9, 78, 156, .04 ), 0 8px 24px rgba( 9, 78, 156, .07 );

	--ww-width:  1400px;
	--ww-gutter: var( --wrc-gutter, 30px );

	/* One alignment line for every band. 100% resolves against the element it is
	   used on, so only apply it to something already full width. */
	--ww-inset: max( var( --ww-gutter ), calc( ( 100% - var( --ww-width ) ) / 2 ) );

	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wrc-waterwheel .ww-icon {
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wrc-waterwheel .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0, 0, 0, 0 );
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
 * 2. Geometry
 *
 * Both `wp-page` AND `wp-post` are matched: Elementor labels these pages `wp-post`
 * even though they are WordPress Pages, and the qualified `.e-con-boxed` selector
 * is needed to outrank wrc-container.css's (0,6,0) site-wide cap.
 * ========================================================================== */

body.wrc-waterwheel .elementor[data-elementor-type="wp-page"] > .e-con.e-con-boxed > .e-con-inner,
body.wrc-waterwheel .elementor[data-elementor-type="wp-post"] > .e-con.e-con-boxed > .e-con-inner {
	max-width: min( 100%, var( --ww-width ) );
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

body.wrc-waterwheel .elementor[data-elementor-type="wp-page"] > .e-con.e-con-boxed,
body.wrc-waterwheel .elementor[data-elementor-type="wp-post"] > .e-con.e-con-boxed {
	padding-left: var( --ww-gutter );
	padding-right: var( --ww-gutter );
	box-sizing: border-box;
}

.wrc-waterwheel .ww-archive-outer {
	width: 100%;
	padding-left: var( --ww-inset );
	padding-right: var( --ww-inset );
	padding-bottom: clamp( 34px, 4vw, 58px );
	box-sizing: border-box;
}

/* the issue page */
body.wrc-waterwheel .page-header > .container,
body.wrc-waterwheel .container.container_vis {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: var( --ww-inset );
	padding-right: var( --ww-inset );
	box-sizing: border-box;
}

body.wrc-waterwheel .ww-issue-page #core {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: clamp( 26px, 3vw, 42px ) 0 0;
	float: none;
}

body.wrc-waterwheel .ww-issue-page .fullcontent {
	width: 100%;
	max-width: 100%;
	margin: 0 auto clamp( 34px, 4vw, 58px );
	padding: 0;
	float: none;
	overflow-x: clip;
}

/* The site-wide `.p-border, .meta, .page-numbers { width: 1180px !important }`
   rule saved on the Elementor kit would break these out of the column. */
.wrc-waterwheel .ww-issue-page .p-border,
.wrc-waterwheel .ww-issue-page .meta {
	width: auto !important;
	max-width: 100% !important;
}

.wrc-waterwheel .ww-issue-page .page-header h1.entry-title {
	margin: 0;
	overflow-wrap: break-word;
}

/* ==========================================================================
 * 3. Heading — the site's own eyebrow + uppercase title pair
 * ========================================================================== */

.wrc-waterwheel .ww-archive__head {
	margin: clamp( 26px, 3vw, 40px ) 0 clamp( 18px, 2vw, 26px );
}

.wrc-waterwheel .ww-archive__eyebrow {
	position: relative;
	margin: 0;
	padding-bottom: 22px;
	color: #66777D;
	font-size: 12px;
	font-weight: 500;
	line-height: 12px;
}

.wrc-waterwheel .ww-archive__eyebrow::before {
	content: '';
	position: absolute;
	left: 0;
	top: 32px;
	width: 40px;
	height: 2px;
	background: var( --ww-lightblue );
}

.wrc-waterwheel .ww-archive__title {
	margin: 22px 0 0;
	color: #222222;
	font-size: clamp( 24px, 2.4vw, 32px );
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

/* ==========================================================================
 * 4. Predecessor archive
 *
 * The SA Waterbulletin sits below the Water Wheel archive rather than beside it.
 * It used to be a sibling tab, which read as a second equal publication and let its
 * volume numbers be mistaken for Water Wheel ones — its Volume 13 is 1987, the
 * Water Wheel's is 2014. Closed by default, quieter than the archive above, and
 * sharing none of its controls.
 * ========================================================================== */

.wrc-waterwheel .ww-legacy {
	margin: 48px 0 0;
}

.wrc-waterwheel .ww-legacy__wrap {
	border: 1px solid var( --ww-grey-line );
	border-radius: var( --ww-radius );
	background: var( --ww-grey-bg );
}

.wrc-waterwheel .ww-legacy__summary {
	display: block;
	padding: 20px 24px;
	cursor: pointer;
	list-style: none;
}

.wrc-waterwheel .ww-legacy__summary::-webkit-details-marker {
	display: none;
}

/* A disclosure triangle drawn rather than inherited, so it matches the archive's
   own iconography and rotates when the section opens. */
.wrc-waterwheel .ww-legacy__summary::after {
	content: '';
	float: right;
	width: 10px;
	height: 10px;
	margin: 6px 2px 0 12px;
	border-right: 2px solid var( --ww-blue );
	border-bottom: 2px solid var( --ww-blue );
	transform: rotate( 45deg );
	transition: transform .18s ease;
}

.wrc-waterwheel .ww-legacy__wrap[open] .ww-legacy__summary::after {
	transform: rotate( -135deg );
	margin-top: 10px;
}

.wrc-waterwheel .ww-legacy__summary:hover .ww-legacy__title,
.wrc-waterwheel .ww-legacy__summary:focus-visible .ww-legacy__title {
	text-decoration: underline;
}

.wrc-waterwheel .ww-legacy__eyebrow {
	display: block;
	margin: 0 0 3px;
	color: var( --ww-ink-soft );
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.wrc-waterwheel .ww-legacy__title {
	display: block;
	color: var( --ww-blue );
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.wrc-waterwheel .ww-legacy__note {
	display: block;
	margin: 4px 0 0;
	color: var( --ww-ink-soft );
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
}

.wrc-waterwheel .ww-legacy__body {
	padding: 4px 24px 24px;
}

.wrc-waterwheel .ww-legacy__year {
	padding: 16px 0 0;
	border-top: 1px solid var( --ww-grey-line );
}

.wrc-waterwheel .ww-legacy__year:first-child {
	border-top: 0;
}

.wrc-waterwheel .ww-legacy__year-label {
	margin: 0 0 8px;
	color: var( --ww-ink );
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
}

.wrc-waterwheel .ww-legacy__list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
	gap: 6px 24px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.wrc-waterwheel .ww-legacy__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0;
	padding: 5px 0;
}

.wrc-waterwheel .ww-legacy__list a {
	color: var( --ww-blue );
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.wrc-waterwheel .ww-legacy__list a:hover,
.wrc-waterwheel .ww-legacy__list a:focus-visible {
	text-decoration: underline;
}

.wrc-waterwheel .ww-legacy__date {
	color: var( --ww-ink-soft );
	font-size: 13px;
	font-weight: 500;
}

/* ==========================================================================
 * 5. Toolbar
 * ========================================================================== */

.wrc-waterwheel .ww-toolbar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	padding: 16px;
	border: 1px solid var( --ww-grey-line );
	border-radius: var( --ww-radius );
	background: var( --ww-grey-bg );
}

.wrc-waterwheel .ww-toolbar__search {
	position: relative;
	flex: 1 1 300px;
	min-width: 230px;
}

.wrc-waterwheel .ww-toolbar__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY( -50% );
	font-size: 18px;
	color: var( --ww-blue );
	pointer-events: none;
}

.wrc-waterwheel .ww-toolbar__search input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	border: 1px solid var( --ww-grey-line );
	border-radius: var( --ww-radius-sm );
	background: var( --ww-white );
	color: var( --ww-ink );
	font-family: inherit;
	font-size: 15px;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.wrc-waterwheel .ww-toolbar__field select {
	height: 46px;
	max-width: 100%;
	padding: 0 34px 0 14px;
	border: 1px solid var( --ww-grey-line );
	border-radius: var( --ww-radius-sm );
	background-color: var( --ww-white );
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23094E9C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px 16px;
	color: var( --ww-ink );
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.wrc-waterwheel .ww-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var( --ww-grey-line );
	border-radius: 999px;
	background: var( --ww-white );
	color: var( --ww-blue );
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wrc-waterwheel .ww-btn:hover,
.wrc-waterwheel .ww-btn:focus-visible {
	background: var( --ww-blue );
	border-color: var( --ww-blue );
	color: var( --ww-white );
	transform: translateY( -1px );
	box-shadow: var( --ww-shadow );
}

.wrc-waterwheel .ww-btn--solid {
	min-height: 46px;
	padding: 0 22px;
	border-color: var( --ww-blue );
	background: var( --ww-blue );
	color: var( --ww-white );
}

.wrc-waterwheel .ww-btn--solid:hover,
.wrc-waterwheel .ww-btn--solid:focus-visible {
	background: var( --ww-lightblue );
	border-color: var( --ww-lightblue );
}

.wrc-waterwheel .ww-toolbar__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var( --ww-ink-soft );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.wrc-waterwheel .ww-toolbar__clear:hover,
.wrc-waterwheel .ww-toolbar__clear:focus-visible {
	color: #B32D2E;
	border-bottom-color: #B32D2E;
}

/* loading indicator while an AJAX filter is in flight */
.wrc-waterwheel .ww-spinner {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba( 9, 78, 156, .25 );
	border-top-color: var( --ww-blue );
	opacity: 0;
	transition: opacity .15s ease;
}

.wrc-waterwheel .ww-toolbar.is-loading .ww-spinner {
	opacity: 1;
	animation: ww-spin .7s linear infinite;
}

@keyframes ww-spin {
	to { transform: rotate( 360deg ); }
}

.wrc-waterwheel .ww-results[aria-busy="true"] {
	opacity: .55;
	transition: opacity .15s ease;
}

/* ==========================================================================
 * 6. Result count, highlight, empty state
 * ========================================================================== */

.wrc-waterwheel .ww-count {
	margin: 0 0 14px;
	color: var( --ww-ink-soft );
	font-size: 14px;
	font-weight: 500;
}

.wrc-waterwheel .ww-count strong {
	color: var( --ww-blue );
	font-weight: 700;
}

.wrc-waterwheel .ww-mark {
	padding: 0 2px;
	border-radius: 3px;
	background: var( --ww-green );
	color: #14370A;
}

.wrc-waterwheel .ww-empty {
	margin: 0;
	padding: 26px 22px;
	border: 1px dashed var( --ww-grey-line );
	border-radius: var( --ww-radius );
	background: var( --ww-grey-bg );
	color: var( --ww-ink-soft );
	text-align: center;
}

/* ==========================================================================
 * 7. Issue list
 * ========================================================================== */

.wrc-waterwheel .ww-issues {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var( --ww-grey-line );
}

.wrc-waterwheel .ww-issues__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var( --ww-grey-line );
}

.wrc-waterwheel .ww-issues__item::before,
.wrc-waterwheel .ww-issues__item::marker {
	content: none;
}

.wrc-waterwheel .ww-issues__row {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 18px 16px;
	transition: background-color .18s ease;
}

.wrc-waterwheel .ww-issues__item:hover .ww-issues__row,
.wrc-waterwheel .ww-issues__item:focus-within .ww-issues__row {
	background: #F8FBFE;
}

/* -- cover ---------------------------------------------------------------- */

.wrc-waterwheel .ww-issues__cover {
	flex: 0 0 auto;
	display: block;
	width: 78px;
	overflow: hidden;
	border-radius: var( --ww-radius-sm );
	background: var( --ww-grey-bg );
	box-shadow: 0 1px 3px rgba( 9, 78, 156, .16 );
	line-height: 0;
}

.wrc-waterwheel .ww-issues__cover img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .3s ease;
}

.wrc-waterwheel .ww-issues__item:hover .ww-issues__cover img {
	transform: scale( 1.04 );
}

/* A cover-shaped placeholder, so a missing image does not collapse the row. */
.wrc-waterwheel .ww-issues__cover-blank,
.wrc-waterwheel .ww-issue__cover-blank {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background: linear-gradient( 140deg, var( --ww-blue ) 0%, var( --ww-lightblue ) 100% );
}

/* -- text ----------------------------------------------------------------- */

.wrc-waterwheel .ww-issues__text {
	flex: 1 1 auto;
	min-width: 0;
}

.wrc-waterwheel .ww-issues__series {
	margin: 0 0 2px;
	color: var( --ww-ink-soft );
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.wrc-waterwheel .ww-issues__label {
	margin: 0;
	color: var( --ww-blue );
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.wrc-waterwheel .ww-issues__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 5px 0 0;
	color: var( --ww-ink-soft );
	font-size: 13.5px;
	font-weight: 500;
}

.wrc-waterwheel .ww-issues__date {
	font-weight: 600;
}

.wrc-waterwheel .ww-issues__sep {
	opacity: .45;
}

.wrc-waterwheel .ww-issues__hits {
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba( 0, 174, 239, .13 );
	color: var( --ww-blue );
	font-size: 12px;
	font-weight: 700;
}

.wrc-waterwheel .ww-issues__preview {
	margin: 10px 0 0;
	padding: 0 0 0 14px;
	border-left: 3px solid var( --ww-grey-line );
	list-style: none;
}

.wrc-waterwheel .ww-issues__preview li {
	margin: 0 0 5px;
	font-size: 13.5px;
	line-height: 1.5;
}

.wrc-waterwheel .ww-issues__preview li::before,
.wrc-waterwheel .ww-issues__preview li::marker {
	content: none;
}

.wrc-waterwheel .ww-issues__preview-title {
	color: var( --ww-ink );
	font-weight: 600;
}

.wrc-waterwheel .ww-issues__preview-authors {
	display: block;
	color: var( --ww-ink-soft );
	font-style: italic;
}

.wrc-waterwheel .ww-issues__cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var( --ww-grey-line );
	border-radius: 999px;
	background: var( --ww-white );
	color: var( --ww-blue );
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.wrc-waterwheel .ww-issues__cta:hover,
.wrc-waterwheel .ww-issues__cta:focus-visible {
	background: var( --ww-blue );
	border-color: var( --ww-blue );
	color: var( --ww-white );
	transform: translateY( -1px );
	box-shadow: var( --ww-shadow );
}

.wrc-waterwheel .ww-issues__cta .ww-icon {
	font-size: 17px;
	transition: transform .18s ease;
}

.wrc-waterwheel .ww-issues__cta:hover .ww-icon {
	transform: translateX( 3px );
}

/* ==========================================================================
 * 8. Pagination
 *
 * width/border-color carry !important because the site-wide kit CSS forces
 * `.page-numbers { width: 1180px !important; border-color: #fff !important }`,
 * which otherwise puts every link on its own line. The parent theme's uneven
 * margins on these links are reset for the same reason.
 * ========================================================================== */

.wrc-waterwheel .ww-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 22px 0 0;
}

.wrc-waterwheel .ww-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	width: auto !important;
	min-width: 40px;
	max-width: 100% !important;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var( --ww-grey-line );
	border-color: var( --ww-grey-line ) !important;
	border-radius: var( --ww-radius-sm );
	background: var( --ww-white );
	color: var( --ww-blue );
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.wrc-waterwheel .ww-pagination a.page-numbers:hover,
.wrc-waterwheel .ww-pagination a.page-numbers:focus-visible {
	background: var( --ww-lightblue );
	border-color: var( --ww-lightblue ) !important;
	color: var( --ww-white );
}

.wrc-waterwheel .ww-pagination .page-numbers.current {
	background: var( --ww-blue );
	border-color: var( --ww-blue ) !important;
	color: var( --ww-white );
}

.wrc-waterwheel .ww-pagination .page-numbers.dots {
	border-color: transparent !important;
	background: none;
	margin: 0;
	min-width: 24px;
	padding: 0 4px;
}

/* ==========================================================================
 * 9. Single issue page
 * ========================================================================== */

.wrc-waterwheel .ww-issue__backrow {
	margin: 0 0 18px;
}

.wrc-waterwheel .ww-issue__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var( --ww-blue );
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .16s ease, border-color .16s ease;
}

.wrc-waterwheel .ww-issue__back:hover,
.wrc-waterwheel .ww-issue__back:focus-visible {
	color: var( --ww-lightblue );
	border-bottom-color: var( --ww-lightblue );
}

.wrc-waterwheel .ww-issue__masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: clamp( 20px, 3vw, 40px );
	margin: 0 0 clamp( 26px, 3vw, 40px );
	padding-bottom: clamp( 22px, 2.6vw, 32px );
	border-bottom: 1px solid var( --ww-grey-line );
}

.wrc-waterwheel .ww-issue__cover {
	flex: 0 0 auto;
	width: clamp( 150px, 20vw, 230px );
	overflow: hidden;
	border-radius: var( --ww-radius );
	background: var( --ww-grey-bg );
	box-shadow: var( --ww-shadow );
	line-height: 0;
}

.wrc-waterwheel .ww-issue__cover img {
	display: block;
	width: 100%;
	height: auto;
}

.wrc-waterwheel .ww-issue__facts {
	flex: 1 1 320px;
	min-width: 0;
}

.wrc-waterwheel .ww-issue__series {
	margin: 0 0 4px;
	color: var( --ww-ink-soft );
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.wrc-waterwheel .ww-issue__desig {
	margin: 0;
	color: var( --ww-blue );
	font-size: clamp( 20px, 2.2vw, 26px );
	font-weight: 700;
	line-height: 1.25;
}

.wrc-waterwheel .ww-issue__date {
	margin: 6px 0 0;
	color: var( --ww-ink-soft );
	font-size: 14px;
	font-weight: 600;
}

.wrc-waterwheel .ww-issue__sep {
	margin: 0 8px;
	opacity: .5;
}

.wrc-waterwheel .ww-issue__summary {
	margin: 14px 0 0;
	color: var( --ww-ink );
	font-size: 15.5px;
	line-height: 1.7;
}

.wrc-waterwheel .ww-issue__actions {
	margin: 18px 0 0;
}

.wrc-waterwheel .ww-nofile {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var( --ww-grey-bg );
	color: var( --ww-ink-soft );
	font-size: 12.5px;
	font-weight: 600;
}

/* -- articles ------------------------------------------------------------- */

.wrc-waterwheel .ww-articles__heading {
	margin: 0 0 12px;
	color: #222222;
	font-size: clamp( 18px, 1.9vw, 22px );
	font-weight: 700;
	text-transform: uppercase;
}

.wrc-waterwheel .ww-articles {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ww-article;
}

.wrc-waterwheel .ww-articles__item {
	counter-increment: ww-article;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	padding: 18px 0 18px 46px;
	border-top: 1px solid var( --ww-grey-line );
	transition: background-color .18s ease;
}

.wrc-waterwheel .ww-articles__item:first-child {
	border-top: 0;
}

.wrc-waterwheel .ww-articles__item::before {
	content: counter( ww-article );
	position: absolute;
	left: 0;
	top: 20px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var( --ww-grey-bg );
	color: var( --ww-blue );
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
}

.wrc-waterwheel .ww-articles__item:hover {
	background: #F8FBFE;
}

.wrc-waterwheel .ww-articles__item:hover::before {
	background: var( --ww-blue );
	color: var( --ww-white );
}

.wrc-waterwheel .ww-articles__body {
	min-width: 0;
}

/* Previous / next issue, below the article list. */
.wrc-waterwheel .ww-issue__nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 40px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid var( --ww-grey-line );
}

.wrc-waterwheel .ww-issue__nav-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 48%;
	padding: 12px 18px;
	border: 1px solid var( --ww-grey-line );
	border-radius: var( --ww-radius-sm );
	color: var( --ww-blue );
	text-decoration: none;
	transition: background-color .16s ease, border-color .16s ease;
}

.wrc-waterwheel .ww-issue__nav-link:hover,
.wrc-waterwheel .ww-issue__nav-link:focus-visible {
	background: var( --ww-grey-bg );
	border-color: var( --ww-blue );
}

.wrc-waterwheel .ww-issue__nav-link--next {
	margin-left: auto;
	text-align: right;
}

.wrc-waterwheel .ww-issue__nav-label {
	display: block;
	color: var( --ww-ink-soft );
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.wrc-waterwheel .ww-issue__nav-title {
	display: block;
	margin-top: 2px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
}

/* The department an article ran under — "Water Kidz", "Last Word". Set above the
   headline and quieter than it, the way the magazine itself sets them. */
.wrc-waterwheel .ww-articles__section {
	margin: 0 0 3px;
	color: var( --ww-ink-soft );
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.wrc-waterwheel .ww-articles__title {
	margin: 0;
	color: var( --ww-ink );
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.wrc-waterwheel .ww-articles__authors {
	margin: 5px 0 0;
	color: var( --ww-blue );
	font-size: 14px;
	font-weight: 500;
	font-style: italic;
}

.wrc-waterwheel .ww-articles__page {
	margin: 3px 0 0;
	color: var( --ww-ink-soft );
	font-size: 13px;
	font-weight: 500;
}

.wrc-waterwheel .ww-articles__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 2px;
}

.wrc-waterwheel .ww-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	color: var( --ww-ink-soft );
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color .16s ease, border-color .16s ease;
}

.wrc-waterwheel .ww-download:hover,
.wrc-waterwheel .ww-download:focus-visible {
	color: var( --ww-blue );
	border-bottom-color: var( --ww-lightblue );
}

/* ==========================================================================
 * 10. Accessibility
 * ========================================================================== */

.wrc-waterwheel a:focus-visible,
.wrc-waterwheel button:focus-visible,
.wrc-waterwheel input:focus-visible,
.wrc-waterwheel select:focus-visible {
	outline: 3px solid var( --ww-lightblue );
	outline-offset: 3px;
}

.wrc-waterwheel .page-header a:focus-visible {
	outline: 3px solid var( --ww-green );
	outline-offset: 3px;
}

@media ( prefers-reduced-motion: reduce ) {

	.wrc-waterwheel * {
		transition-duration: .01ms !important;
	}

	.wrc-waterwheel .ww-toolbar.is-loading .ww-spinner {
		animation: none;
	}

	.wrc-waterwheel .ww-btn:hover,
	.wrc-waterwheel .ww-issues__cta:hover,
	.wrc-waterwheel .ww-issues__item:hover .ww-issues__cover img {
		transform: none;
	}
}

/* ==========================================================================
 * 11. Responsive
 * ========================================================================== */

@media ( max-width: 1024px ) {

	.wrc-waterwheel .ww-toolbar__search {
		flex: 1 1 100%;
	}

	.wrc-waterwheel .ww-toolbar__field {
		flex: 1 1 190px;
	}

	.wrc-waterwheel .ww-toolbar__field select {
		width: 100%;
	}

	.wrc-waterwheel .ww-issues__label {
		font-size: 16px;
	}
}

@media ( max-width: 767px ) {

	.wrc-waterwheel {
		--ww-gutter: var( --wrc-gutter, 16px );
	}

	.wrc-waterwheel .ww-legacy__summary,
	.wrc-waterwheel .ww-legacy__body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.wrc-waterwheel .ww-legacy__list {
		grid-template-columns: 1fr;
	}

	.wrc-waterwheel .ww-toolbar__field,
	.wrc-waterwheel .ww-btn--solid {
		flex: 1 1 100%;
	}

	.wrc-waterwheel .ww-btn--solid {
		justify-content: center;
	}

	/* cover beside the title, action beneath */
	.wrc-waterwheel .ww-issues__row {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 14px;
		padding: 16px 12px;
	}

	.wrc-waterwheel .ww-issues__cover {
		width: 62px;
	}

	.wrc-waterwheel .ww-issues__text {
		flex: 1 1 calc( 100% - 76px );
	}

	.wrc-waterwheel .ww-issues__cta {
		flex: 1 1 100%;
		justify-content: center;
	}

	.wrc-waterwheel .ww-issue__masthead {
		gap: 18px;
	}

	.wrc-waterwheel .ww-issue__cover {
		width: 130px;
	}

	.wrc-waterwheel .ww-articles__item {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-left: 40px;
	}

	.wrc-waterwheel .ww-articles__item::before {
		width: 26px;
		height: 26px;
		font-size: 11.5px;
	}

	.wrc-waterwheel .ww-articles__actions {
		flex-wrap: wrap;
		gap: 8px 16px;
	}

	.wrc-waterwheel .ww-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 9px;
		font-size: 13px;
	}
}
