/* We All Count - Course Page Tweaks */

/* ---------- "Coming Soon" and "Live" labels ---------- */

.wac-ct-pill {
	align-self: flex-start;
	background-color: #fab437;
	border-radius: 999px;
	color: var(--color-deep-indigo, #312975);
	display: inline-block;
	font-family: var(--gp-font--barlow-condensed, "Barlow Condensed", sans-serif);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	margin: 0;
	padding: 7px 16px 8px;
	text-transform: uppercase;
	white-space: nowrap;
	width: fit-content;
}

/* "Live" label: same shape, purple instead of yellow. */
.wac-ct-pill--live {
	background-color: var(--color-bright-purple, #594fd1);
	color: #ffffff;
}

/* Product page, under the course title. */
.wac-ct-pill--hero {
	font-size: 22px;
	margin-top: 6px;
	padding: 9px 20px 10px;
}

/* Course cards on the Courses page, above the course name. */
.wac-ct-pill--card {
	margin: 18px 0 -8px;
}

@media (max-width: 767px) {
	.wac-ct-pill--hero {
		font-size: 15px;
		margin-top: 10px;
		padding: 6px 13px 7px;
	}
}

/* ---------- Course cards (Courses page) ---------- */

/* The card's arrow link is stretched over the whole card, so the card is
   clickable all over while staying a single link. */
.wac-ct-card {
	position: relative;
	transition: translate 0.2s ease, box-shadow 0.2s ease;
}

.wac-ct-card .wac-ct-card__link::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

/* Hover (mouse only): the card lifts and the arrow fills in. */
@media (hover: hover) {
	.wac-ct-card:hover {
		box-shadow: 0 14px 30px rgba(49, 44, 116, 0.14);
		translate: 0 -4px;
	}

	.wac-ct-card:hover .wac-ct-card__link svg rect {
		fill: var(--color-bright-purple, #594fd1);
	}

	.wac-ct-card:hover .wac-ct-card__link svg path {
		fill: var(--color-ivory, #fffcf8);
	}
}

/* Keyboard focus: the ring goes round the whole card. */
.wac-ct-card:has(.wac-ct-card__link:focus-visible) {
	outline: 3px dotted var(--color-bright-purple, #594fd1);
	outline-offset: 4px;
}

.wac-ct-card:has(.wac-ct-card__link:focus-visible) .wac-ct-card__link {
	outline: none;
}

.wac-ct-card:has(.wac-ct-card__link:focus-visible) .wac-ct-card__link svg rect {
	fill: var(--color-bright-purple, #594fd1);
}

.wac-ct-card:has(.wac-ct-card__link:focus-visible) .wac-ct-card__link svg path {
	fill: var(--color-ivory, #fffcf8);
}

@media (prefers-reduced-motion: reduce) {
	.wac-ct-card {
		transition: none;
	}

	.wac-ct-card:hover {
		translate: none;
	}
}

/* Facts under the course name: format, price, next date. */
.wac-ct-facts {
	color: var(--color-deep-indigo, #312c74);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--gp-font--barlow-condensed, "Barlow Condensed", sans-serif);
	font-size: 18px;
	font-weight: 600;
	gap: 2px 16px;
	letter-spacing: 0.3px;
	line-height: 1.4;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.wac-ct-fact {
	align-items: center;
	display: inline-flex;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.wac-ct-fact::before {
	background-color: var(--color-marigold, #fab437);
	border-radius: 50%;
	content: "";
	flex: none;
	height: 7px;
	margin-right: 7px;
	width: 7px;
}

/* The date always starts its own line. */
.wac-ct-fact--date {
	flex-basis: 100%;
}

/* ---------- "Notify me when on sale" ---------- */

.wac-ct-notify {
	max-width: 420px;
}

.wac-ct-notify__lead {
	margin-bottom: 18px;
}

.wac-ct-notify__form {
	margin: 0;
}

.wac-ct-notify__label {
	display: block;
	font-family: var(--gp-font--barlow-condensed, "Barlow Condensed", sans-serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.wac-ct-notify__input[type="email"] {
	background-color: #ffffff;
	border: 2px solid var(--color-bright-purple, #594fd1);
	border-radius: 10px;
	box-sizing: border-box;
	color: inherit;
	display: block;
	font-size: 19px;
	margin-bottom: 16px;
	padding: 12px 14px;
	width: 100%;
}

.wac-ct-notify__input[type="email"]:focus {
	outline: 3px solid rgba(89, 79, 209, 0.35);
	outline-offset: 2px;
}

/* Hidden field that only bots fill in. */
.wac-ct-notify__trap {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.wac-ct-notify__button.button {
	justify-content: center;
	text-align: center;
	width: 100%;
}

.wac-ct-notify__button[disabled] {
	cursor: default;
	opacity: 0.6;
}

.wac-ct-notify__fine {
	font-size: 16px;
	font-style: italic;
	line-height: 1.4;
	margin: 12px 0 0;
}

.wac-ct-notify__msg {
	border-radius: 10px;
	margin: 0;
	padding: 14px 16px;
}

.wac-ct-notify__msg.is-ok {
	background-color: var(--color-cream, #f3ece1);
	border: 2px solid #ffffff;
	font-weight: 600;
}

.wac-ct-notify__msg.is-error {
	background-color: #fbe9eb;
	border: 2px solid #d24b5a;
	margin-top: 14px;
}

/* ---------- Course Delivery Pages ---------- */

/* Welcome text above the session box and Course Resources: use the full
   width of the columns below it, centred. */
.cdp-content .gb-text-28f5937e,
.cdp-content > div:first-child > .gb-text:only-child {
	max-width: 1000px;
	text-align: center;
}

@media (max-width: 1159.99px) {
	.cdp-content .gb-text-28f5937e,
	.cdp-content > div:first-child > .gb-text:only-child {
		max-width: 880px;
	}
}

/* Feedback card on minicourse pages. */
.wac-ct-feedback {
	align-items: center;
	background-color: var(--color-cream, #f3ece1);
	border-radius: 17px;
	box-sizing: border-box;
	column-gap: 40px;
	display: flex;
	justify-content: space-between;
	margin: 30px auto 10px;
	max-width: 1000px;
	padding: 34px 44px;
	row-gap: 18px;
}

.wac-ct-feedback__title {
	font-size: 34px;
	line-height: 1.15;
	margin: 0 0 8px;
}

.wac-ct-feedback__text {
	margin: 0;
	max-width: 560px;
}

.wac-ct-feedback__action {
	flex-shrink: 0;
}

.wac-ct-feedback__button.button {
	white-space: nowrap;
}

@media (max-width: 1159.99px) {
	.wac-ct-feedback {
		max-width: 880px;
	}
}

@media (max-width: 767px) {
	.wac-ct-feedback {
		align-items: stretch;
		flex-direction: column;
		padding: 26px 24px;
		text-align: center;
	}

	.wac-ct-feedback__text {
		max-width: none;
	}

	.wac-ct-feedback__title {
		font-size: 27px;
	}
}

/* ---------- Primary button ---------- */

/* One filled button for the main action on a screen: Add to Basket, Proceed
   to Checkout, Place Order, Log In, Notify Me, Contact Us, and Join Live
   Session once its link is live. Every other button keeps the outlined style
   that the theme gives to .button. To make another button primary, add its
   selector to the list in each rule below. To take one out, remove it. */
:is(
	.single-product button.single_add_to_cart_button.button,
	.woocommerce-mini-cart__buttons a.button.checkout,
	.wc-proceed-to-checkout a.checkout-button.button,
	#place_order.button,
	button.woocommerce-form-login__submit.button,
	button.wac-ct-notify__button.button,
	a.button[href$="/contact/"],
	a.button.join-live-session:not([href="#"])
) {
	background-color: var(--color-deep-indigo) !important;
	border-radius: 12px;
	color: var(--color-ivory) !important;
	min-height: 52px;
}

:is(
	.single-product button.single_add_to_cart_button.button,
	.woocommerce-mini-cart__buttons a.button.checkout,
	.wc-proceed-to-checkout a.checkout-button.button,
	#place_order.button,
	button.woocommerce-form-login__submit.button,
	button.wac-ct-notify__button.button,
	a.button[href$="/contact/"],
	a.button.join-live-session:not([href="#"])
):is(:hover, :focus-visible, :active) {
	background-color: var(--color-deep-indigo) !important;
	color: var(--color-ivory) !important;
}

/* The theme draws the outline with ::before. It takes the colour of the fill. */
:is(
	.single-product button.single_add_to_cart_button.button,
	.woocommerce-mini-cart__buttons a.button.checkout,
	.wc-proceed-to-checkout a.checkout-button.button,
	#place_order.button,
	button.woocommerce-form-login__submit.button,
	button.wac-ct-notify__button.button,
	a.button[href$="/contact/"],
	a.button.join-live-session:not([href="#"])
)::before {
	border-color: var(--color-deep-indigo) !important;
}

/* The theme uses ::after for the purple fill that slides in on hover. On a
   primary button it is the arrow, and the arrow is what moves. */
:is(
	.single-product button.single_add_to_cart_button.button,
	.woocommerce-mini-cart__buttons a.button.checkout,
	.wc-proceed-to-checkout a.checkout-button.button,
	#place_order.button,
	button.woocommerce-form-login__submit.button,
	button.wac-ct-notify__button.button,
	a.button[href$="/contact/"],
	a.button.join-live-session:not([href="#"])
)::after {
	background-color: currentColor;
	border: 0;
	border-radius: 0;
	content: "";
	display: inline-block;
	flex: none;
	height: 24px;
	inset: auto;
	margin-left: 12px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 12h15M13 6l6 6-6 6%27/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M4 12h15M13 6l6 6-6 6%27/%3E%3C/svg%3E") center / contain no-repeat;
	position: static;
	transform: none;
	transition: transform 0.25s ease;
	vertical-align: -0.14em;
	width: 24px;
	will-change: auto;
	z-index: auto;
}

:is(
	.single-product button.single_add_to_cart_button.button,
	.woocommerce-mini-cart__buttons a.button.checkout,
	.wc-proceed-to-checkout a.checkout-button.button,
	#place_order.button,
	button.woocommerce-form-login__submit.button,
	button.wac-ct-notify__button.button,
	a.button[href$="/contact/"],
	a.button.join-live-session:not([href="#"])
):is(:hover, :focus-visible)::after {
	transform: translateX(6px);
}

/* Contact Us has a fixed width in its block. Let it grow to hold the arrow. */
a.button[href$="/contact/"] {
	min-width: 200px;
	padding-left: 24px;
	padding-right: 24px;
	white-space: nowrap;
	width: auto;
}

@media (prefers-reduced-motion: reduce) {
	:is(
		.single-product button.single_add_to_cart_button.button,
		.woocommerce-mini-cart__buttons a.button.checkout,
		.wc-proceed-to-checkout a.checkout-button.button,
		#place_order.button,
		button.woocommerce-form-login__submit.button,
		button.wac-ct-notify__button.button,
		a.button[href$="/contact/"],
		a.button.join-live-session:not([href="#"])
	)::after {
		transition: none;
	}

	:is(
		.single-product button.single_add_to_cart_button.button,
		.woocommerce-mini-cart__buttons a.button.checkout,
		.wc-proceed-to-checkout a.checkout-button.button,
		#place_order.button,
		button.woocommerce-form-login__submit.button,
		button.wac-ct-notify__button.button,
		a.button[href$="/contact/"],
		a.button.join-live-session:not([href="#"])
	):is(:hover, :focus-visible)::after {
		transform: none;
	}
}

/* High contrast mode: the theme switches to system colours and drops its
   decorations. Drop the arrow with them. */
@media (forced-colors: active) {
	:is(
		.single-product button.single_add_to_cart_button.button,
		.woocommerce-mini-cart__buttons a.button.checkout,
		.wc-proceed-to-checkout a.checkout-button.button,
		#place_order.button,
		button.woocommerce-form-login__submit.button,
		button.wac-ct-notify__button.button,
		a.button[href$="/contact/"],
		a.button.join-live-session:not([href="#"])
	)::after {
		display: none;
	}
}

/* ---------- Checkout: account links ---------- */

/* "Account Login" (shown to a visitor who is not logged in) and "Account
   Logout" (shown to one who is), at the top of the Checkout page. The theme
   colours both crimson. They take the normal link colour, deep indigo, like
   the account links in the menus. Nothing else about them changes. */
body .wac-returning-login a {
	color: var(--color-deep-indigo);
}

/* ---------- Corner sizes ---------- */

/* Three corner sizes for the whole site (design review, proposal 14):
     12px         buttons, fields and small boxes
     24px         large cards, video and pictures that stand on their own
     fully round  pills and circles (they already were, and are not touched)
   Each rule below repeats a selector from the theme, the course plugin, a
   block or this add-on, with "html" in front so that it outweighs the
   original, and gives it one of the two sizes. Removing this whole section
   puts every corner back as it was. */
:root {
	--wac-corner: 12px;
	--wac-corner-large: 24px;
}

/* 12px: fields. WooCommerce reads this variable for its text fields, its
   dropdowns and the country and province pickers. */
html body {
	--wc-form-border-radius: var(--wac-corner);
}

html .single-product .wac-field-group select,
html .woocommerce form .quantity.buttons-added,
html .wac-ct-notify__input[type="email"] {
	border-radius: var(--wac-corner);
}

/* The list that drops down from the country and province pickers. The edge
   that touches the field stays square, as WooCommerce sets it. */
html .select2-container--open .select2-dropdown--below {
	border-bottom-left-radius: var(--wac-corner);
	border-bottom-right-radius: var(--wac-corner);
	overflow: hidden;
}

html .select2-container--open .select2-dropdown--above {
	border-top-left-radius: var(--wac-corner);
	border-top-right-radius: var(--wac-corner);
	overflow: hidden;
}

/* 12px: buttons, tabs and accordion headers that had 5, 8 or 10px. */
html .woocommerce-cart button[name="update_cart"],
html .woocommerce-cart .return-to-shop .button,
html .woocommerce .wac-checkout-coupon button,
html .woocommerce a.wc-backward,
html .cdp-resources-accordion__toggle,
html .cdp-resources-tabs,
html .cdp-resources-tabs button,
html .gb-accordion .gb-accordion__toggle,
html .wac-player__speed {
	border-radius: var(--wac-corner);
}

/* 12px: small boxes. Notes, notices, the address box, the payment box, date
   tiles, the account menu, the change-date pop-up, the video list. */
html .woocommerce .woocommerce-error,
html .woocommerce .woocommerce-info,
html .woocommerce .woocommerce-message,
html .single-product .woocommerce-notices-wrapper .woocommerce-error,
html .woocommerce .woocommerce-customer-details address,
html .woocommerce form.checkout_coupon,
html .woocommerce-cart #payment ul.payment_methods,
html .woocommerce-checkout #payment ul.payment_methods,
html .wac-upcoming-sessions .date-block,
html .gb-element-f13d099f,
html .wac-popup-inner,
html .wac-cp__card,
html .wac-ct-notify__msg,
html .wac-player-playlist,
html .wac-player-playlist__item,
html .wac-player-playlist__thumb {
	border-radius: var(--wac-corner);
}

/* The "Paying by cheque or PO?" note sets its corner in its own style
   attribute, so this one needs !important. */
html .wac-invoice-message {
	border-radius: var(--wac-corner) !important;
}

/* The first and last rows inside the payment box follow its corners. */
html .woocommerce-cart #payment ul.payment_methods li:first-child,
html .woocommerce-checkout #payment ul.payment_methods li:first-child {
	border-radius: var(--wac-corner) var(--wac-corner) 0 0;
}

html .woocommerce-cart #payment ul.payment_methods li:last-of-type,
html .woocommerce-checkout #payment ul.payment_methods li:last-of-type {
	border-radius: 0 0 var(--wac-corner) var(--wac-corner);
}

/* 12px: pictures that sit inside a card (course cards, Student Hub cards). */
html .gb-media-58f4103c,
html .gb-media-d43692a3,
html .gb-media-6b52dff4,
html .gb-media-c5de02c2,
html .gb-media-55dda5d8,
html .gb-element-730ac6dd .wac-course-image img,
html .gb-element-7f4e79cf .wac-course-image img {
	border-radius: var(--wac-corner);
}

/* 24px: large cards. Course cards, Student Hub cards, the panels on course
   pages, the session panel and feedback card on course delivery pages, the
   flip cards on the Framework page, the login box. Three of the block names
   belong to the pattern "Essential Courses Grid", which no page uses today. */
html .gb-loop-item-6daedb42,
html .gb-loop-item-b5a99e47,
html .gb-element-bd179f15,
html .gb-element-114508f0,
html .gb-element-071c823a,
html .gb-element-730ac6dd .wac-course,
html .gb-element-7f4e79cf .wac-course,
html .gb-element-6f2fb874,
html .gb-element-35df8d0b,
html .gb-element-68cf29c9,
html .gb-element-ca136724,
html .gb-element-3e1d1915,
html .gb-element-dc0dec7c,
html .gb-element-91193891,
html .gb-element-c8950d95,
html .gb-element-6ca86e5a,
html .gb-element-cdf236dd,
html .gb-element-e956ab9b,
html .gb-element-5a1571d1,
html .gb-element-ea04d2d6,
html .gb-element-c83a12f5,
html .gb-element-d3ecaa5a,
html .gb-element-2fae3299,
html .gb-element-b191ac11,
html .wac-ct-feedback,
html .flip-card__face,
html .flip-card__toggle,
html .woocommerce form.login,
html .woocommerce form.register {
	border-radius: var(--wac-corner-large);
}

/* 24px: the boxed sections inside six articles (they had 30px). */
html .gb-element-a5b5bd4c,
html .gb-element-29ae9e1a,
html .gb-element-6ff64e56,
html .gb-element-276f6174,
html .gb-element-e2072e45,
html .gb-element-5256b0d3,
html .gb-element-30513407,
html .gb-element-54f60cea,
html .gb-element-b5b34f87,
html .gb-element-615d0305,
html .gb-element-b5f106d1,
html .gb-element-28d818eb,
html .gb-element-6383ea28 {
	border-radius: var(--wac-corner-large);
}

/* 24px: video. */
html .wac-player-wrapper,
html .wac-cp__stage,
html .wac-fq__stage {
	border-radius: var(--wac-corner-large);
}

/* 24px: pictures that stand on their own. Article and resource pictures,
   the About portrait, the picture at the top of a course delivery page, the
   two pictures in the menus. */
html .gb-media-7f47ddda,
html .gb-media-257be9f3,
html .gb-media-34372c90,
html .gb-media-15ec8502,
html .gb-media-4c8a502d,
html .gb-media-3c785e6b,
html .gb-media-bd52e809,
html .gb-media-c2899734,
html .gb-media-776655ff {
	border-radius: var(--wac-corner-large);
}

/* ---------- Page grid ---------- */

/* One grid for the whole site (design review, proposal 20): content up to
   1200px wide in 12 columns with 24px between them, which makes one column
   78px. The blocks below had 24 different widths between them. Each now has
   one of three, every one a whole number of columns, and each stays centred
   on the page as before:
     12 columns  1200px  page content: card grids and sections with columns
     10 columns   996px  medium rows: a picture beside text, two columns, the footer
      7 columns   690px  reading text
   Each rule repeats a block's own class with "html" in front so that it
   outweighs the width the block gives itself. Where a block keeps side
   padding inside its width, the padding is added on, so that the content is
   the size named. Two blocks are used on two pages with different settings,
   so their rules name the page (5732 is Coaching, 5735 is Contact).
   Everything sits inside one "min-width: 1025px" query, so tablets and
   phones are not touched at all. Removing this whole section puts every
   width back as it was. */
:root {
	--wac-grid-max: 1200px; /* 12 columns */
	--wac-grid-gap: 24px;
	--wac-grid-col: 78px;   /* (1200 - 11 x 24) / 12 */
	--wac-grid-10: 996px;   /* 10 x 78 + 9 x 24 */
	--wac-grid-7: 690px;    /* 7 x 78 + 6 x 24 */
}

@media (min-width: 1025px) {

	/* 12 columns. Home (these were 1220px), Courses and the greeting on
	   My Account (1240px), Resources (1250px). */
	html .gb-element-667d0c4c,
	html .gb-element-74cb335d,
	html .gb-element-e27f715b,
	html .gb-element-13011bd9,
	html .gb-element-5603ff44,
	html .gb-element-33842d27,
	html .gb-element-8b652494,
	html .gb-element-975420e9,
	html .gb-element-b4cbbce3,
	html .gb-element-ac534746,
	html .gb-element-3d2d07fd,
	html .gb-element-f3829c7e,
	html .gb-element-8e9b1a35,
	html .gb-element-d0dae635,
	html .gb-element-8af10d6a {
		max-width: var(--wac-grid-max);
	}

	/* 12 columns, for blocks with 20px of padding on each side: the article
	   list on Blog, search and archive pages (content was 1210px) and the
	   client list on About (1140px). */
	html .gb-element-c12cacb3,
	html .gb-element-497eae19,
	html .gb-element-3e642e84,
	html .gb-element-c04a8b64,
	html .gb-element-b3ac9d54 {
		max-width: calc(var(--wac-grid-max) + 40px);
	}

	/* 10 columns. "Join Our Forum" on Home, the two footer blocks, "Previous
	   Sessions" and "Submit a suggestion" on Talking Data Equity (all 1050px),
	   the title row and "Next Steps" on Coaching (780px and 870px), the
	   diagrams on Data Equity Framework (920px). */
	html .gb-element-d0212c3b,
	html .gb-element-d72f50be,
	html .gb-element-8055f930,
	html .gb-element-582cc704,
	html .gb-element-ec5269f6,
	html body.page-id-5732 .gb-element-c8d36731,
	html body.page-id-5732 .gb-element-5df83125,
	html .gb-element-8334d827 {
		max-width: var(--wac-grid-10);
	}

	/* 10 columns, with 20px of padding on each side: the email row on Contact
	   (content was 960px), the photo row and the quotation on About (984px
	   and 880px). */
	html body.page-id-5735 .gb-element-c8d36731,
	html .gb-element-18cf4a90,
	html .gb-element-a931e223 {
		max-width: calc(var(--wac-grid-10) + 40px);
	}

	/* 10 columns, with 25px of padding on each side: the picture and summary
	   at the top of every article (content was 990px). */
	html .gb-element-7b8c3736 {
		max-width: calc(var(--wac-grid-10) + 50px);
	}

	/* 7 columns: reading text. Courses, About, My Account and Data Equity
	   Framework (624px), Coaching (642px), Terms of Use (646px), Talking Data
	   Equity (660px), Data Equity Framework again (670px and 680px), Account
	   details (680px). */
	html .gb-element-f5317e48,
	html .gb-element-497b7b05,
	html .gb-element-ddc539c8,
	html .gb-element-fc520df9,
	html body.page-id-5732 .gb-element-f2e2015d,
	html .gb-element-7c127939,
	html .gb-element-de46587a,
	html .gb-element-e4e291fa,
	html .gb-element-328b9759,
	html .gb-element-593897b0 {
		max-width: var(--wac-grid-7);
	}

	/* 7 columns, with 20px of padding on each side: Resources (content was
	   610px), Contact (622px), About (630px), Talking Data Equity (640px). */
	html .gb-element-13527deb,
	html body.page-id-5735 .gb-element-f2e2015d,
	html .gb-element-e2f0c925,
	html .gb-element-3ba9be20 {
		max-width: calc(var(--wac-grid-7) + 40px);
	}

	/* 7 columns: the Privacy Policy (page 3), whose text was 860px wide. It
	   is built with ordinary WordPress blocks, so the rule repeats WordPress's
	   own selector for the width of a page's content. */
	html body.page-id-3 .entry-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
		max-width: var(--wac-grid-7);
	}
}

/* ---------- Mini-course banner: preview video and Notify form ---------- */

/* Design review, proposal 46. On a mini-course page the text column of the
   banner (the "Mini-course:" label, the title and the "Coming Soon" or
   "Available now" label) gains up to two parts under the label:
     - "Preview the course" as a picture of the video with a play button,
       when the page's own "Preview the course" link goes to a Vimeo video.
       A click plays the video in a pop-up over the page.
     - the "Notify me when on sale" form, while the course is "Coming soon".
       The form further down the page stays where it is.
   The plugin adds the class "wac-ct-hero-extras" to the body on those pages
   and on no others. Nothing here applies anywhere else. */

/* The banner is exactly 520px tall on desktop. Keep that as its smallest
   height and let it grow when the title runs to three lines. Below 961px it
   already sizes itself. */
@media (min-width: 961px) {
	html body.wac-ct-hero-extras .gb-element-b0290354 > .gb-element-1448d0ce {
		box-sizing: border-box;
		height: auto;
		min-height: 520px;
		padding-bottom: 36px;
		padding-top: 36px;
	}
}

/* "Preview the course": the picture, the play button and the words. The words
   are set like the page's own "Preview the course" link. */
.wac-ct-preview {
	align-items: center;
	align-self: flex-start;
	color: var(--color-deep-indigo, #312c74);
	column-gap: 20px;
	display: flex;
	margin-top: 24px;
	max-width: 100%;
	text-decoration: none;
}

.wac-ct-preview:focus-visible {
	border-radius: var(--wac-corner, 12px);
	outline: 3px dotted var(--color-bright-purple, #594fd1);
	outline-offset: 6px;
}

.wac-ct-preview__thumb {
	aspect-ratio: 16 / 9;
	background-color: var(--color-deep-indigo, #312c74);
	border-radius: var(--wac-corner, 12px);
	display: block;
	flex: none;
	overflow: hidden;
	position: relative;
	width: 280px;
}

.wac-ct-preview__thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wac-ct-preview__play {
	background-color: var(--color-deep-indigo, #312c74);
	border: 3px solid var(--color-ivory, #fffcf8);
	border-radius: 50%;
	height: 64px;
	left: 50%;
	margin: -32px 0 0 -32px;
	position: absolute;
	top: 50%;
	transition: transform 0.2s ease;
	width: 64px;
}

.wac-ct-preview__play::before {
	border-color: transparent transparent transparent var(--color-ivory, #fffcf8);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	content: "";
	left: 50%;
	margin: -11px 0 0 -7px;
	position: absolute;
	top: 50%;
}

.wac-ct-preview:hover .wac-ct-preview__play,
.wac-ct-preview:focus-visible .wac-ct-preview__play {
	transform: scale(1.08);
}

.wac-ct-preview__text {
	display: flex;
	flex-direction: column;
	row-gap: 6px;
}

.wac-ct-preview__title {
	font-family: var(--gp-font--barlow-condensed, "Barlow Condensed", sans-serif);
	color: var(--color-bright-purple, #594fd1);
	font-size: 24px;
	font-weight: 500;
	letter-spacing: 0.4px;
	line-height: 1.15;
	text-decoration: underline dotted 4px;
	text-transform: uppercase;
	text-underline-offset: 6px;
}

.wac-ct-preview__meta {
	color: var(--color-charcoal, #2e3034);
	font-size: 20px;
	line-height: 1.2;
}

/* The pop-up that plays the video. */
.wac-ct-preview-dialog {
	background: transparent;
	border: 0;
	max-height: none;
	max-width: none;
	overflow: visible;
	padding: 0;
	width: min(1000px, calc(100vw - 32px), calc((100vh - 140px) * 16 / 9));
}

.wac-ct-preview-dialog::backdrop {
	background-color: rgba(24, 21, 60, 0.85);
}

.wac-ct-preview-dialog__frame {
	aspect-ratio: 16 / 9;
	background-color: #000000;
	border-radius: var(--wac-corner-large, 24px);
	overflow: hidden;
	position: relative;
}

.wac-ct-preview-dialog__frame iframe {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.wac-ct-preview-dialog__close {
	background-color: var(--color-ivory, #fffcf8);
	border: 0;
	border-radius: 999px;
	color: var(--color-deep-indigo, #312c74);
	cursor: pointer;
	display: block;
	font-family: var(--gp-font--barlow-condensed, "Barlow Condensed", sans-serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	margin: 0 0 12px auto;
	padding: 10px 18px 11px;
	text-transform: uppercase;
}

.wac-ct-preview-dialog__close:focus-visible {
	outline: 3px dotted var(--color-ivory, #fffcf8);
	outline-offset: 3px;
}

/* The Notify form when it sits in the banner: field and button side by side. */
.wac-ct-notify--hero {
	align-self: stretch;
	margin-top: 24px;
	max-width: 600px;
}

.wac-ct-notify--hero .wac-ct-notify__form {
	align-items: stretch;
	column-gap: 12px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}

/* The script hides the form once it has been sent. Keep that working now
   that the form is laid out as a grid. */
.wac-ct-notify--hero .wac-ct-notify__form[hidden] {
	display: none;
}

/* The field keeps its label for screen readers. The words inside the field
   say the same thing to everyone else. */
.wac-ct-notify--hero .wac-ct-notify__label {
	clip-path: inset(50%);
	height: 1px;
	margin: 0;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.wac-ct-notify--hero .wac-ct-notify__input[type="email"] {
	margin-bottom: 0;
}

.wac-ct-notify--hero .wac-ct-notify__button.button {
	padding-left: 22px;
	padding-right: 22px;
	white-space: nowrap;
	width: auto;
}

.wac-ct-notify--hero .wac-ct-notify__fine {
	grid-column: 1 / -1;
	margin-top: 10px;
}

.wac-ct-notify--hero .wac-ct-notify__msg.is-ok {
	background-color: var(--color-ivory, #fffcf8);
}

/* Tablets and narrow windows: a smaller picture, and the button under the
   field. */
@media (max-width: 960px) {
	.wac-ct-preview__thumb {
		width: 220px;
	}

	.wac-ct-notify--hero .wac-ct-notify__form {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 10px;
	}

	.wac-ct-notify--hero .wac-ct-notify__button.button {
		width: 100%;
	}
}

/* Phones: the text column is about 200px wide. */
@media (max-width: 767px) {
	.wac-ct-preview {
		column-gap: 12px;
		margin-top: 14px;
	}

	.wac-ct-preview__thumb {
		width: 100px;
	}

	.wac-ct-preview__play {
		border-width: 2px;
		height: 36px;
		margin: -18px 0 0 -18px;
		width: 36px;
	}

	.wac-ct-preview__play::before {
		border-width: 7px 0 7px 11px;
		margin: -7px 0 0 -4px;
	}

	.wac-ct-preview__title {
		font-size: 18px;
		text-decoration-thickness: 3px;
		text-underline-offset: 4px;
	}

	.wac-ct-preview__meta {
		display: none;
	}

	.wac-ct-notify--hero {
		margin-top: 14px;
	}

	.wac-ct-notify--hero .wac-ct-notify__button.button {
		font-size: 18px;
		line-height: 1.1;
		padding-left: 12px;
		padding-right: 12px;
		white-space: normal;
	}

	/* No room for the arrow beside the words. The rule that draws the arrow
	   (see "Primary button" above) names "#place_order", so only
	   "!important" outranks it. */
	.wac-ct-notify--hero .wac-ct-notify__button.button::after {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wac-ct-preview__play {
		transition: none;
	}

	.wac-ct-preview:hover .wac-ct-preview__play,
	.wac-ct-preview:focus-visible .wac-ct-preview__play {
		transform: none;
	}
}

/* ---------- Talking Data Equity: session links, previous sessions, testimonials ---------- */

/* Design review, proposal 61. Three small things on the Talking Data Equity
   page (ID 6127). Nothing here applies to any other page: the first two
   name parts that only that page has, and the third names the page. */

/* 1. A link typed into a session's description reads as a link in a
      sentence. The theme styles every link in the session list like "Add to
      Calendar" (capitals, 25px, bold), which is right for that link only. */
html .wac-upcoming-sessions .session-desc a {
	font-size: inherit;
	font-weight: inherit;
	text-transform: none;
	width: auto;
}

/* 2. "Previous Sessions" is a plain list: every link shows. It was a box
      360px tall that scrolled inside the page, with its own scrollbar. */
html .wac-previous-sessions.scroll-wrapper,
html .wac-previous-sessions .scroll-content {
	height: auto;
	max-height: none;
	overflow: visible;
}

html .wac-previous-sessions .scrollbar {
	display: none;
}

/* 3. Testimonial text is larger where there is room for it: up to 26px on
      wide screens (it was 22px, the size of ordinary text) and 22px on
      phones (it was 19px). Between 768 and 1239px the quote sits in a narrow
      column and is left as it was. */
@media (min-width: 1240px) {
	html body.page-id-6127 .wac-testimonials .testimonial__quote {
		font-size: clamp(22px, 1.8vw, 26px);
		line-height: 1.35;
	}
}

@media (max-width: 767px) {
	html body.page-id-6127 .wac-testimonials .testimonial__quote {
		font-size: 22px;
		line-height: 1.3;
	}
}

/* ---------- Page titles for screen readers ---------- */

/* Design review, proposal 72. On a course delivery page the theme hides the
   My Account header, and with it the only level 1 heading on the page: the
   course name. Hide the header from sight only, so that a screen reader
   still reads the course name as the page title. Nothing shows and nothing
   moves: the header takes up no room, as before. It holds that one heading
   and nothing that can be clicked. */
html body.woocommerce-view-course .my-account-header {
	border: 0;
	clip-path: inset(50%);
	display: block;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}
