/*
 * Network Theme — Gutenberg block styles.
 *
 * This file loads on the front end AND inside the block editor
 * (enqueue_block_assets). Use only block selectors (.wp-block-*,
 * .is-style-*). Do not style bare body/html here: in a non-iframed
 * editor those rules would leak into wp-admin. The box model below is
 * the one rule that is not a block selector, and it names the canvas of
 * the editor, so it stays out of wp-admin too.
 *
 * Tokens come from theme.json (--wp--custom--*) and from the per-site
 * brand variables --brand-primary / --brand-accent.
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

/*
 * The short names of the tokens of theme.json. They live in this file,
 * not in main.css, because this file is the one that the editor canvas
 * loads too. A rule that a block uses can then read the same value in
 * the editor and on the page.
 *
 * Only custom properties stand here. A custom property draws nothing, so
 * the rule cannot change the look of wp-admin when the editor does not
 * use an iframe.
 */
:root {
	--paper: var(--wp--custom--paper, #fbfaf7);
	--surface: var(--wp--custom--surface, #ffffff);
	--ink: var(--wp--custom--ink, #1e2126);
	--muted: var(--wp--custom--muted, #5a5f68);
	--line: var(--wp--custom--line, #e7e4de);
	--tint: var(--wp--custom--tint, #f2f4f7);
	--accent-tint: var(--wp--custom--accent-tint, #fdf1e9);
	--primary-deep: var(--wp--custom--primary-deep, #0b3a63);
	--accent-deep: var(--wp--custom--accent-deep, #bf490a);

	/*
	 * The three colours of a button. A site sets them in the Customizer,
	 * under "Colours", and EVERY button of the network reads them: the
	 * button of a core block, the CTA of a banner, of a review and of a
	 * comparison, the sticker of an affiliate link, the button on a card
	 * of the advertiser grid and the button of the newsletter signup
	 * block.
	 *
	 * A field that a site leaves empty writes no property, and the
	 * fallback in theme.json then gives the colour: the second colour of
	 * the site, a dark version of THE COLOUR OF THE BUTTON, and white
	 * text. The hover colour comes out of the colour of the button and
	 * never out of the accent, so a site that picks a button colour of
	 * its own does not get a hover colour from another colour. The 18% is
	 * the amount of black of --accent-deep, so a site that sets nothing
	 * draws the same button as before.
	 *
	 * The last value of each line is for a page that carries neither the
	 * token nor the theme.
	 */
	--button: var(--wp--custom--button, var(--brand-accent, #e8590c));
	--button-hover: var(--wp--custom--button-hover, color-mix(in srgb, #000 18%, var(--button)));
	--button-ink: var(--wp--custom--button-ink, #fff);
	--font-display: var(--wp--custom--font-display, system-ui, sans-serif);
	--radius: var(--wp--custom--radius, 10px);
	--radius-sm: var(--wp--custom--radius-small, 6px);
	--shadow-card: var(--wp--custom--shadow-card, 0 8px 24px -12px rgb(20 22 26 / 0.18));
	--content-w: var(--wp--style--global--content-size, 680px);
	--wide-w: var(--wp--style--global--wide-size, 1120px);
	--gutter: clamp(1rem, 4vw, 1.5rem);
}

/* ------------------------------------------------------------------ */
/* The box model of the canvas of a page and of a post                 */
/* ------------------------------------------------------------------ */

/*
 * main.css gives every element of the page the border box: a padding
 * and a border stay inside the size of the element. That file loads on
 * the front end only, and the editor brings no box model of its own.
 * The canvas must get the same box model as the page, or a component
 * that has a size and a padding is larger in the editor than on the
 * page. A card with "height: 100%" and a padding then goes out of its
 * block, and the next block writes over it.
 *
 * WordPress puts the post type on the body of the canvas, and the rule
 * names the two post types that this theme draws: a page and a post.
 * The letter of the newsletter plugin is the other canvas, and it must
 * NOT get this rule: that canvas shows the HTML of an email, and an
 * email client gives a cell with a width and a padding the content
 * box. The letter must look in the canvas as it looks in an inbox.
 *
 * The rule reaches a canvas only. It cannot change wp-admin, and on the
 * front end the class is absent.
 */
.editor-styles-wrapper:is(.post-type-page, .post-type-post),
.editor-styles-wrapper:is(.post-type-page, .post-type-post) *,
.editor-styles-wrapper:is(.post-type-page, .post-type-post) *::before,
.editor-styles-wrapper:is(.post-type-page, .post-type-post) *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Helpers                                                             */
/* ------------------------------------------------------------------ */

/* Standard WordPress accessibility helper. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


/* ------------------------------------------------------------------ */
/* The space between the blocks                                        */
/* ------------------------------------------------------------------ */

/*
 * .entry-content is the container of the page. .is-root-container is
 * the container of the editor canvas. The two get the same rule, so the
 * space between two blocks is the same in the editor and on the page.
 *
 * The measurements stand in theme.json (custom.flow). theme.json hands
 * the same value to the block editor as the block gap, so a block that
 * lays out its own children keeps the rhythm too.
 */
.entry-content > * + *,
.is-root-container > * + * {
	margin-top: var(--wp--custom--flow, 1.4rem);
}

.entry-content > h2,
.is-root-container > h2 {
	margin-top: var(--wp--custom--flow-heading, 2.6rem);
}

.entry-content > h3,
.is-root-container > h3 {
	margin-top: var(--wp--custom--flow-subheading, 2.1rem);
}

/*
 * The space at the top and at the bottom of the content belongs to the
 * first block and to the last block, not to the template. A block over
 * the whole width takes no space, so a banner sits against the header
 * and against the footer.
 *
 * An editor can change the space of one block: the block panel writes a
 * margin into the style attribute of the block, and an inline style wins
 * over the rules here.
 */
.entry-content > :first-child,
.is-root-container > :first-child {
	margin-top: var(--wp--custom--flow-start, 2rem);
}

.entry-content > :last-child,
.is-root-container > :last-child {
	margin-bottom: var(--wp--custom--flow-end, 3rem);
}

.entry-content > .alignfull:first-child,
.is-root-container > .alignfull:first-child {
	margin-top: 0;
}

.entry-content > .alignfull:last-child,
.is-root-container > .alignfull:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Quotes                                                              */
/* ------------------------------------------------------------------ */

.wp-block-quote {
	margin-block: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 4px solid var(--brand-accent);
	font-size: 1.05em;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	font-style: normal;
	color: var(--wp--custom--muted, #5a5f68);
}

.wp-block-quote cite::before {
	content: "— ";
}

.wp-block-pullquote {
	padding: 2rem 1rem;
	border-top: 3px solid var(--brand-primary);
	border-bottom: 3px solid var(--brand-primary);
	text-align: center;
}

.wp-block-pullquote blockquote {
	margin: 0;
}

.wp-block-pullquote p {
	font-family: var(--wp--custom--font-display, inherit);
	font-size: clamp(1.3rem, 3vw, 1.6rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0;
}

.wp-block-pullquote cite {
	display: block;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	font-style: normal;
	color: var(--wp--custom--muted, #5a5f68);
}

/* ------------------------------------------------------------------ */
/* Images, galleries, embeds                                           */
/* ------------------------------------------------------------------ */

.wp-block-image img {
	border-radius: var(--wp--custom--radius, 10px);
}

.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-block-embed figcaption,
.wp-block-video figcaption,
.wp-block-audio figcaption {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--wp--custom--muted, #5a5f68);
	text-align: center;
}

.wp-block-gallery .wp-block-image img {
	border-radius: var(--wp--custom--radius-small, 6px);
}

/* ------------------------------------------------------------------ */
/* Tables                                                              */
/* ------------------------------------------------------------------ */

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	background: var(--wp--custom--surface, #fff);
	border: 1px solid var(--wp--custom--line, #e7e4de);
	border-radius: var(--wp--custom--radius-small, 6px);
	overflow: hidden;
	font-size: 0.95rem;
}

.wp-block-table th {
	font-family: var(--wp--custom--font-display, inherit);
	font-weight: 700;
	text-align: left;
	color: #fff;
	background: var(--brand-primary);
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.6rem 0.9rem;
	border: 1px solid var(--wp--custom--line, #e7e4de);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: var(--wp--custom--tint, #f2f4f7);
}

.wp-block-table.is-style-stripes table {
	border-bottom: 1px solid var(--wp--custom--line, #e7e4de);
}

.wp-block-table figcaption {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--wp--custom--muted, #5a5f68);
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Code and preformatted                                               */
/* ------------------------------------------------------------------ */

.wp-block-code,
.wp-block-preformatted {
	padding: 1rem 1.25rem;
	font-size: 0.88rem;
	background: var(--wp--custom--ink, #1e2126);
	color: #f4f2ee;
	border-radius: var(--wp--custom--radius-small, 6px);
	overflow-x: auto;
}

/* Inline code. */
.wp-block-paragraph code,
p code,
li code {
	padding: 0.1em 0.35em;
	font-size: 0.9em;
	background: var(--wp--custom--tint, #f2f4f7);
	border: 1px solid var(--wp--custom--line, #e7e4de);
	border-radius: 4px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.wp-block-button__link {
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/*
 * The border follows the text colour, so the outline button stays
 * readable on any background. Only the colour the editor did not set is
 * supplied: a button inside a cover sits on a dark overlay and turns
 * white, everywhere else it takes the brand colour.
 */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
}

.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
	color: var(--brand-primary);
}

.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
	color: #fff;
}

.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover {
	background: var(--brand-primary);
	color: #fff;
	border-color: var(--brand-primary);
}

.wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background):hover {
	background: #fff;
	color: var(--wp--custom--ink, #1e2126);
	border-color: #fff;
}

/* Affiliate CTA sticker. inc/blocks.php adds rel and target on render. */
.wp-block-button.is-style-affiliate .wp-block-button__link {
	background: var(--button);
	color: var(--button-ink);
	font-weight: 700;
	box-shadow: 0.2rem 0.2rem 0 var(--wp--custom--primary-deep, #0b3a63);
}

.wp-block-button.is-style-affiliate .wp-block-button__link::after {
	content: " →";
}

.wp-block-button.is-style-affiliate .wp-block-button__link:hover {
	background: var(--button-hover);
	transform: translate(0.1rem, 0.1rem);
	box-shadow: 0.1rem 0.1rem 0 var(--wp--custom--primary-deep, #0b3a63);
}

/* ------------------------------------------------------------------ */
/* Lists: pros and cons styles                                         */
/* ------------------------------------------------------------------ */

ul.is-style-pros,
ul.is-style-cons {
	list-style: none;
	padding-left: 0;
}

ul.is-style-pros li,
ul.is-style-cons li {
	position: relative;
	padding-left: 2.1rem;
	margin-bottom: 0.6rem;
}

ul.is-style-pros li::before,
ul.is-style-cons li::before {
	position: absolute;
	left: 0;
	top: 0.15em;
	font-weight: 700;
	width: 1.45rem;
	height: 1.45rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	font-size: 0.85rem;
	line-height: 1;
}

ul.is-style-pros li::before {
	content: "✓";
	color: #116632;
	background: #e2f3e8;
}

ul.is-style-cons li::before {
	content: "✕";
	color: #a8271f;
	background: #fbe7e5;
}

/* ------------------------------------------------------------------ */
/* Deal box: coupon-style group                                        */
/* ------------------------------------------------------------------ */

.wp-block-group.is-style-deal-box {
	position: relative;
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--custom--surface, #fff);
	border: 2px dashed color-mix(in srgb, var(--brand-accent) 65%, var(--wp--custom--line, #e7e4de));
	border-radius: var(--wp--custom--radius, 10px);
}

/* Coupon punch holes. */
.wp-block-group.is-style-deal-box::before,
.wp-block-group.is-style-deal-box::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 1.15rem;
	height: 1.15rem;
	background: var(--wp--custom--paper, #fbfaf7);
	border: 2px dashed color-mix(in srgb, var(--brand-accent) 65%, var(--wp--custom--line, #e7e4de));
	border-radius: 50%;
	transform: translateY(-50%);
}

.wp-block-group.is-style-deal-box::before {
	left: -0.7rem;
	clip-path: inset(-4px -4px -4px 45%);
}

.wp-block-group.is-style-deal-box::after {
	right: -0.7rem;
	clip-path: inset(-4px 45% -4px -4px);
}

/* ------------------------------------------------------------------ */
/* Other core blocks                                                   */
/* ------------------------------------------------------------------ */

.wp-block-cover {
	border-radius: var(--wp--custom--radius, 10px);
}

.wp-block-cover.alignfull {
	border-radius: 0;
}

/* ------------------------------------------------------------------ */
/* Details / accordion (also the FAQ block of the SEO plugin)          */
/* ------------------------------------------------------------------ */

/*
 * Two blocks draw an accordion, and one set of rules holds the look of
 * both: the core Details block, and the FAQ block of the SEO plugin
 * (yoast/faq-block). inc/faq.php writes each question of the FAQ block
 * as <details> and <summary>, so a page carries the same elements for
 * the two blocks.
 *
 * In the editor the SEO plugin draws a question as a <div>, and the
 * rules for div.schema-faq-section give that <div> the same card, open.
 *
 * A rule for the FAQ names two class names, because the stylesheet of
 * the SEO plugin styles .schema-faq-section too and can load after this
 * file.
 */
.wp-block-details,
.schema-faq .schema-faq-section {
	padding: 1rem 1.25rem;
	background: var(--wp--custom--surface, #fff);
	border: 1px solid var(--wp--custom--line, #e7e4de);
	border-radius: var(--wp--custom--radius-small, 6px);
}

/*
 * A question of the FAQ carries the accent line, and the space between
 * two questions is the space between two blocks.
 */
.schema-faq .schema-faq-section {
	margin: 0;
	border-left: 3px solid var(--brand-accent);
}

.schema-faq .schema-faq-section + .schema-faq-section {
	margin-top: var(--wp--custom--flow, 1.4rem);
}

.schema-faq details.schema-faq-section[open] {
	box-shadow: var(--wp--custom--shadow-card, 0 8px 24px -12px rgb(20 22 26 / 0.18));
}

/*
 * In the editor the buttons that move a question and take it out stand
 * in the space at the left side of the question. The space stays.
 */
.schema-faq div.schema-faq-section {
	padding-left: 2rem;
}

.schema-faq .schema-faq-section .schema-faq-question {
	display: block;
	font-family: var(--wp--custom--font-display, inherit);
	font-weight: 600;
}

.schema-faq .schema-faq-section .schema-faq-answer {
	margin: 0.8rem 0 0;
}

.wp-block-details summary,
details.schema-faq-section > summary {
	position: relative;
	padding-right: 2rem;
	font-family: var(--wp--custom--font-display, inherit);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

/* The question inside a summary draws the line of the summary. */
details.schema-faq-section > summary .schema-faq-question {
	font-weight: inherit;
}

/* Replace the default triangle with a chevron that turns. */
.wp-block-details summary::-webkit-details-marker,
details.schema-faq-section > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::marker,
details.schema-faq-section > summary::marker {
	content: "";
}

.wp-block-details summary::after,
details.schema-faq-section > summary::after {
	content: "";
	position: absolute;
	right: 0.35rem;
	top: 0.35em;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--brand-accent);
	border-bottom: 2px solid var(--brand-accent);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::after,
details.schema-faq-section[open] > summary::after {
	transform: rotate(-135deg);
	top: 0.55em;
}

.wp-block-details summary:hover,
details.schema-faq-section > summary:hover {
	color: var(--brand-primary);
}

/* ------------------------------------------------------------------ */
/* Table of contents                                                   */
/* ------------------------------------------------------------------ */

.netsite-toc {
	padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1.1rem, 3vw, 1.6rem);
	background: var(--wp--custom--tint, #f2f4f7);
	border: 1px solid var(--wp--custom--line, #e7e4de);
	border-left: 3px solid var(--brand-primary);
	border-radius: var(--wp--custom--radius, 10px);
	font-size: 0.95rem;
}

.netsite-toc__title {
	margin: 0 0 0.6rem;
	font-family: var(--wp--custom--font-display, inherit);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--custom--muted, #5a5f68);
}

.netsite-toc__list {
	margin: 0;
	padding-left: 0;
	list-style: none;
	counter-reset: netsite-toc;
}

ol.netsite-toc__list .netsite-toc__item {
	counter-increment: netsite-toc;
}

ol.netsite-toc__list .netsite-toc__item::before {
	content: counter(netsite-toc) ".";
	margin-right: 0.45rem;
	font-weight: 700;
	color: var(--brand-accent);
}

.netsite-toc__item {
	margin: 0;
	padding: 0.22rem 0;
	line-height: 1.4;
}

/* Each heading level below H2 steps in one more time. */
.netsite-toc__item--h3 {
	padding-left: 1.1rem;
}

.netsite-toc__item--h4 {
	padding-left: 2.2rem;
}

.netsite-toc__item a {
	color: var(--wp--custom--ink, #1e2126);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.netsite-toc__item a:hover {
	color: var(--brand-primary);
	border-bottom-color: var(--brand-primary);
}

/* The message that the editor sees while the post has too few headings. */
.netsite-toc__empty {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wp--custom--muted, #5a5f68);
}

/*
 * A link in the list jumps to a heading. The space keeps the heading
 * clear of the top edge of the window after the jump.
 */
.entry-content > :is(h2, h3, h4)[id] {
	scroll-margin-top: 1.5rem;
}

.wp-block-media-text {
	background: var(--wp--custom--surface, #fff);
	border: 1px solid var(--wp--custom--line, #e7e4de);
	border-radius: var(--wp--custom--radius, 10px);
	overflow: hidden;
}

.wp-block-media-text.is-style-plain,
.wp-block-media-text.has-background {
	border: 0;
}

.wp-block-footnotes {
	font-size: 0.85rem;
	color: var(--wp--custom--muted, #5a5f68);
	border-top: 1px solid var(--wp--custom--line, #e7e4de);
	padding-top: 1rem;
}

.wp-block-latest-posts li,
.wp-block-archives li,
.wp-block-categories li {
	margin-bottom: 0.4rem;
}

/* ------------------------------------------------------------------ */
/* Card grid                                                           */
/* ------------------------------------------------------------------ */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.card:focus-within {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--line));
	box-shadow: var(--shadow-card);
}

.card__media {
	aspect-ratio: 3 / 2;
	background: var(--tint);
}

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

.card__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.1rem 1.2rem 1.25rem;
	flex: 1;
}

.card__badge {
	align-self: flex-start;
	padding: 0.2rem 0.65rem;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: var(--accent-tint);
	border-radius: 999px;
}

.card__title {
	margin: 0;
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

/* Stretch the primary link over the whole card. */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card:hover .card__title a,
.card__title a:focus {
	color: var(--brand-primary);
}

.card__excerpt {
	margin: 0;
	font-size: 0.93rem;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__excerpt p {
	margin: 0;
}

.card__meta {
	margin-top: auto;
	padding-top: 0.35rem;
	font-size: 0.8rem;
	color: var(--muted);
}

/*
 * A card with no featured image gets a brand bar in place of the photo,
 * so it does not read as a broken card next to the others.
 */
.card:not(:has(.card__media))::before {
	content: "";
	display: block;
	height: 5px;
	background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

/*
 * The first card on the first archive page becomes a wide feature, but
 * only when it has an image: a two-column feature with an empty photo
 * column looks like a fault.
 */
@media (min-width: 700px) {
	.card-grid--featured .card:first-child:has(.card__media) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1.2fr 1fr;
	}

	.card-grid--featured .card:first-child .card__media {
		aspect-ratio: auto;
		min-height: 100%;
	}

	.card-grid--featured .card:first-child:has(.card__media) .card__body {
		justify-content: center;
		gap: 0.8rem;
		padding: clamp(1.25rem, 3vw, 2.5rem);
	}

	.card-grid--featured .card:first-child:has(.card__media) .card__title {
		font-size: clamp(1.5rem, 2.6vw, 2rem);
	}

	.card-grid--featured .card:first-child:has(.card__media) .card__excerpt {
		font-size: 1rem;
		-webkit-line-clamp: 4;
	}
}

/* ------------------------------------------------------------------ */
/* Page title block                                                    */
/* ------------------------------------------------------------------ */

/*
 * The title comes from the title field, so the block holds no text of
 * its own. The class below exists only in the editor: it marks a post
 * that has no title yet.
 */
.netsite-title--empty {
	color: var(--wp--custom--muted, #5a5f68);
}

/* ------------------------------------------------------------------ */
/* Featured image block                                                */
/* ------------------------------------------------------------------ */

.wp-block-network-theme-featured-image {
	margin-block: 0;
}

.wp-block-network-theme-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius, 10px);
}

.wp-block-network-theme-featured-image.alignfull img {
	border-radius: 0;
}

.wp-block-network-theme-featured-image figcaption {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--wp--custom--muted, #5a5f68);
	text-align: center;
}

/* The message that the editor sees while the post has no image. */
.netsite-featured-image__empty {
	margin: 0;
	padding: 1.5rem;
	font-size: 0.9rem;
	color: var(--wp--custom--muted, #5a5f68);
	background: var(--wp--custom--tint, #f2f4f7);
	border: 1px dashed var(--wp--custom--line, #e7e4de);
	border-radius: var(--wp--custom--radius, 10px);
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Breadcrumb block                                                    */
/* ------------------------------------------------------------------ */

/*
 * The same trail stands in two places: templates/header.php draws it
 * over an article and over an archive, and the block Breadcrumb draws it
 * on a page. One set of rules holds the look of both, and it stands in
 * this file, so the editor canvas draws the block as the page does.
 */
.breadcrumbs {
	font-size: 0.82rem;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--brand-primary);
	text-decoration: underline;
}

/* The message that the editor sees while the SEO plugin gives no trail. */
.netsite-breadcrumbs__empty {
	margin: 0;
	padding: 1.5rem;
	font-size: 0.9rem;
	color: var(--muted);
	background: var(--tint);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Post grid block                                                     */
/* ------------------------------------------------------------------ */

/* The message that the editor sees while the query finds no post. */
.netsite-post-grid__empty {
	margin: 0;
	padding: 1.5rem;
	font-size: 0.9rem;
	color: var(--muted);
	background: var(--tint);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Banner block                                                        */
/* ------------------------------------------------------------------ */

/*
 * The class name holds no word that an ad blocker looks for. "banner"
 * is on the public block lists, so the class is "netsite-showcase".
 */
.netsite-showcase {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
	border-radius: var(--radius);
}

.netsite-showcase:not(.has-background):not(:has(.netsite-showcase__media)) {
	background: linear-gradient(135deg, var(--tint) 0%, var(--accent-tint) 100%);
}

.netsite-showcase.alignfull {
	border-radius: 0;
}

.netsite-showcase__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.netsite-showcase__veil {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #12151a;
}

.netsite-showcase__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 40rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	align-items: flex-start;
}

.netsite-showcase__inner.is-position-center {
	margin-inline: auto;
	align-items: center;
	text-align: center;
}

.netsite-showcase__inner.is-position-right {
	margin-inline-start: auto;
	align-items: flex-end;
	text-align: right;
}

/* Over a picture the text is white, unless the editor set a colour. */
.netsite-showcase:has(.netsite-showcase__media):not(.has-text-color) {
	color: #fff;
}

.netsite-showcase__eyebrow {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.85;
}

.netsite-showcase__title {
	margin: 0;
	font-size: clamp(1.7rem, 4.5vw, 2.6rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: inherit;
}

.netsite-showcase__text {
	margin: 0;
	font-size: 1.05rem;
	color: inherit;
	opacity: 0.92;
}

.netsite-showcase__cta {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.7rem 1.5rem;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--button-ink);
	background: var(--button);
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0.2rem 0.2rem 0 var(--primary-deep);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.netsite-showcase__cta::after {
	content: " →";
}

.netsite-showcase__cta:hover,
.netsite-showcase__cta:focus {
	color: var(--button-ink);
	background: var(--button-hover);
	transform: translate(0.1rem, 0.1rem);
	box-shadow: 0.1rem 0.1rem 0 var(--primary-deep);
}

/* ------------------------------------------------------------------ */
/* Pros and cons block                                                 */
/* ------------------------------------------------------------------ */

.netsite-verdict {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.netsite-verdict.is-layout-columns {
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.netsite-verdict.is-layout-columns {
		grid-template-columns: 1fr 1fr;
	}
}

.netsite-verdict__title {
	margin: 0 0 0.7rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.netsite-verdict__column--pros .netsite-verdict__title {
	color: #116632;
}

.netsite-verdict__column--cons .netsite-verdict__title {
	color: #a8271f;
}

.netsite-verdict__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.netsite-verdict__item {
	position: relative;
	margin: 0 0 0.55rem;
	padding-left: 2.1rem;
	line-height: 1.45;
}

.netsite-verdict__item::before {
	position: absolute;
	left: 0;
	top: 0.15em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.45rem;
	height: 1.45rem;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	border-radius: 50%;
}

.netsite-verdict__column--pros .netsite-verdict__item::before {
	content: "✓";
	color: #116632;
	background: #e2f3e8;
}

.netsite-verdict__column--cons .netsite-verdict__item::before {
	content: "✕";
	color: #a8271f;
	background: #fbe7e5;
}

/* ------------------------------------------------------------------ */
/* Stars and the rating block                                          */
/* ------------------------------------------------------------------ */

/*
 * The stars are two rows of five characters, one over the other. The
 * width of the top row is the score, so a half star is correct and the
 * row keeps its size.
 */
.netsite-stars {
	position: relative;
	display: inline-block;
	flex: none;
	font-size: 1.1em;
	line-height: 1;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.netsite-stars__empty {
	color: var(--line);
}

.netsite-stars__full {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: var(--brand-accent);
}

.netsite-rating {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-wrap: wrap;
}

.netsite-rating__value {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ink);
}

.netsite-rating__max {
	font-size: 0.8em;
	font-weight: 600;
	color: var(--muted);
}

.netsite-rating__label {
	font-size: 0.9rem;
	color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Review summary block                                                */
/* ------------------------------------------------------------------ */

.netsite-review {
	padding: clamp(1.1rem, 3vw, 1.7rem) clamp(1.2rem, 3vw, 1.8rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--brand-primary);
	border-radius: var(--radius);
}

.netsite-review__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(0.9rem, 3vw, 1.4rem);
}

.netsite-review__media {
	flex: none;
	width: 5.5rem;
	height: 5.5rem;
	overflow: hidden;
	background: var(--tint);
	border-radius: var(--radius-sm);
}

.netsite-review__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.netsite-review__intro {
	flex: 1 1 12rem;
	min-width: 0;
}

.netsite-review__badge:not(:empty) {
	display: inline-block;
	margin: 0 0 0.35rem;
	padding: 0.2rem 0.65rem;
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: var(--accent-tint);
	border-radius: 999px;
}

.netsite-review__name {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.netsite-review__price {
	margin: 0.25rem 0 0;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--brand-primary);
}

.netsite-review__score {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	min-width: 5.5rem;
	padding: 0.6rem 0.9rem;
	background: var(--tint);
	border-radius: var(--radius-sm);
	text-align: center;
}

.netsite-review__score-number {
	margin: 0;
	font-family: var(--font-display);
	line-height: 1;
}

.netsite-review__score-value {
	font-size: 1.9rem;
	font-weight: 800;
	color: var(--brand-primary);
	letter-spacing: -0.02em;
}

.netsite-review__score-max {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
}

.netsite-review__criteria {
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.netsite-review__criterion {
	position: relative;
	display: grid;
	grid-template-columns: minmax(6rem, 10rem) 1fr 2.4rem;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.92rem;
}

.netsite-review__criterion-label {
	color: var(--muted);
}

.netsite-review__meter {
	display: block;
	height: 0.55rem;
	background: var(--tint);
	border-radius: 999px;
	overflow: hidden;
}

.netsite-review__bar {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
	border-radius: 999px;
}

.netsite-review__criterion-score {
	font-family: var(--font-display);
	font-weight: 700;
	text-align: right;
}

.netsite-review__verdict {
	margin: 1.2rem 0 0;
}

.netsite-review__cta {
	display: inline-block;
	margin-top: 1.1rem;
	padding: 0.65rem 1.4rem;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--button-ink);
	background: var(--button);
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0.2rem 0.2rem 0 var(--primary-deep);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.netsite-review__cta::after {
	content: " →";
}

.netsite-review__cta:hover,
.netsite-review__cta:focus {
	color: var(--button-ink);
	background: var(--button-hover);
	transform: translate(0.1rem, 0.1rem);
	box-shadow: 0.1rem 0.1rem 0 var(--primary-deep);
}

@media (max-width: 520px) {
	.netsite-review__criterion {
		grid-template-columns: 1fr 2.4rem;
	}

	.netsite-review__criterion-label {
		grid-column: 1 / -1;
	}
}

/* ------------------------------------------------------------------ */
/* Comparison table block                                              */
/* ------------------------------------------------------------------ */

/*
 * A table with many columns is wider than a telephone. The table keeps
 * its width and the box around it scrolls sideways, so the columns stay
 * readable and nothing breaks the page.
 */
.netsite-compare__scroll {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.netsite-compare__table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	font-size: 0.93rem;
}

.netsite-compare__table th,
.netsite-compare__table td {
	position: relative;
	padding: 0.7rem 0.9rem;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
	text-align: center;
}

.netsite-compare__corner {
	border-bottom: 1px solid var(--line);
	background: none;
}

.netsite-compare__product {
	vertical-align: bottom;
	padding-block: 1.1rem;
	border-top: 3px solid transparent;
}

.netsite-compare__image {
	display: block;
	width: 100%;
	max-width: 7rem;
	height: 4.5rem;
	margin: 0 auto 0.5rem;
	object-fit: contain;
}

.netsite-compare__badge:not(:empty) {
	display: inline-block;
	margin-bottom: 0.35rem;
	padding: 0.15rem 0.55rem;
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--accent-deep);
	background: var(--accent-tint);
	border-radius: 999px;
}

.netsite-compare__name {
	display: block;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink);
}

.netsite-compare__price {
	display: block;
	margin-top: 0.2rem;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--brand-primary);
}

.netsite-compare__label {
	text-align: left;
	font-weight: 600;
	color: var(--muted);
	background: color-mix(in srgb, var(--tint) 55%, transparent);
}

/* The column of the product that the editor marks. */
.netsite-compare__product.is-highlight {
	border-top-color: var(--brand-accent);
	background: var(--accent-tint);
}

.netsite-compare__value.is-highlight,
.netsite-compare__buy.is-highlight {
	background: color-mix(in srgb, var(--accent-tint) 55%, transparent);
}

.netsite-compare__buy {
	border-bottom: 0;
	padding-block: 1rem;
}

.netsite-compare__cta {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	font-family: var(--font-display);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--button-ink);
	background: var(--button);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.netsite-compare__cta:hover,
.netsite-compare__cta:focus {
	color: var(--button-ink);
	background: var(--button-hover);
}

.netsite-compare__editor-row {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* ------------------------------------------------------------------ */
/* Chart block                                                         */
/* ------------------------------------------------------------------ */

/*
 * The chart is CSS only: each bar carries its size as a per cent, and
 * this file gives the bar its form. No script draws the chart, so the
 * editor and the page cannot show two different charts.
 */
.netsite-chart {
	padding: clamp(1.1rem, 3vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.netsite-chart__title {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.netsite-chart__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.netsite-chart__track {
	display: block;
	background: var(--tint);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.netsite-chart__fill {
	display: block;
	background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
	border-radius: var(--radius-sm);
}

.netsite-chart__value {
	font-family: var(--font-display);
	font-weight: 700;
	white-space: nowrap;
}

/* Bars that lie down: name, bar, number. */
.netsite-chart.is-kind-bar .netsite-chart__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(5rem, 9rem) 1fr auto;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
	font-size: 0.93rem;
}

.netsite-chart.is-kind-bar .netsite-chart__track {
	height: 0.85rem;
}

.netsite-chart.is-kind-bar .netsite-chart__fill {
	height: 100%;
	min-width: 2px;
}

/* Bars that stand up: the number, the column, the name under it. */
.netsite-chart.is-kind-column .netsite-chart__items {
	display: flex;
	align-items: flex-end;
	gap: clamp(0.5rem, 2.5vw, 1.25rem);
	min-height: 12rem;
}

.netsite-chart.is-kind-column .netsite-chart__item {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.85rem;
	text-align: center;
}

.netsite-chart.is-kind-column .netsite-chart__label {
	order: 3;
	color: var(--muted);
}

.netsite-chart.is-kind-column .netsite-chart__track {
	order: 2;
	width: 100%;
	max-width: 4.5rem;
	height: 9rem;
	display: flex;
	align-items: flex-end;
}

.netsite-chart.is-kind-column .netsite-chart__fill {
	width: 100%;
	min-height: 2px;
}

.netsite-chart.is-kind-column .netsite-chart__value {
	order: 1;
}

.netsite-chart__editor-row {
	display: flex;
	gap: 0.5rem;
}
