/*
Theme Name: NatureLaw Research
Theme URI: https://research.naturelawtrading.com/
Author: Nature Law AI Quant Trading Lab
Description: Child theme of Twenty Twenty-Five for NatureLaw Research: tutorials, partners and the research we do. Black header with the Nature Law logo, black footer with the legal links and the risk warning, articles on a light page. System fonts, no external requests, three small scripts (the cookie notice, the Partners submenu of the header menu, and the counter opt-out on the privacy policy).
Template: twentytwentyfive
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nlresearch
*/

/* ------------------------------------------------------------------
 * Base. Colors, fonts and sizes come from theme.json (presets); this
 * file only adds what theme.json cannot express. Mobile first.
 *
 * Contrast (WCAG 2.x, computed; README "Colori e contrasti"):
 * light page  #16181D on #FBFBF8 17.1:1 · links #A24311 on #FBFBF8 6.05:1
 *             (on the CTA tint #FCF1E7 5.64:1, on the surface #F2F3EF 5.63:1)
 *             · button white on #A24311 6.27:1, hover white on #7D340D 8.86:1
 *             · muted #545A62 on #FBFBF8 6.72:1, on #F2F3EF 6.25:1
 * dark chrome #E8EAED on #0A0A0A 16.4:1 · gold #E0962A on #0A0A0A 8.08:1
 *             · grey #9AA1AE on #0A0A0A 7.62:1 · notice: #E8EAED on #16181D
 *             14.7:1, button #0A0A0A on #E0962A 8.08:1
 * The brand fire orange #E8641E (3.23:1 on the page) is never text on the
 * light page: only borders and lines.
 * ---------------------------------------------------------------- */

:root {
	--nl-ink: var(--wp--preset--color--contrast);
	--nl-paper: var(--wp--preset--color--base);
	--nl-accent: var(--wp--preset--color--accent-1);
	--nl-accent-dark: var(--wp--preset--color--accent-3);
	--nl-tint: var(--wp--preset--color--accent-2);
	--nl-muted: var(--wp--preset--color--accent-4);
	--nl-surface: var(--wp--preset--color--accent-5);
	--nl-rule: var(--wp--preset--color--accent-6);
	--nl-night: var(--wp--preset--color--brand-night);
	--nl-gold: var(--wp--preset--color--brand-gold);
	--nl-fire: var(--wp--preset--color--brand-fire);
	--nl-mist: var(--wp--preset--color--brand-mist);
	--nl-grey: var(--wp--preset--color--brand-grey);
	--nl-brand-line: linear-gradient(90deg, var(--nl-fire), var(--nl-gold));
	--nl-card: #fff;
	--nl-radius: 6px;
	color-scheme: light;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

/* Links (folds in the two rules of the parent stylesheet, which is not loaded). */
a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--nl-accent);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	text-wrap: balance;
}

p, li, blockquote, figcaption, caption, td {
	text-wrap: pretty;
}

:where(pre) {
	position: relative; /* holds the hidden warning of its links, like .nl-table */
	overflow-x: auto;
}

/* Numbers line up: tables, dates and every value traced to a source. */
table,
time,
[data-nl-field],
.wp-block-post-date {
	font-variant-numeric: tabular-nums;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--nl-paper);
	clip-path: none;
	color: var(--nl-ink);
	display: block;
	height: auto;
	left: 0.5rem;
	padding: 0.75rem 1rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

/* ------------------------------------------------------------------
 * Header: black, the logo (inc/brand.php), the brand line at the bottom.
 * ---------------------------------------------------------------- */

.nl-header {
	padding-block-end: 3px;
	background: var(--nl-brand-line) bottom / 100% 3px no-repeat, var(--nl-night);
	color: var(--nl-mist);
}

.nl-header__bar {
	padding-block: 0.6rem;
	row-gap: 0.25rem;
	column-gap: 1.5rem;
}

.nl-brand {
	margin: 0;
	line-height: 0;
}

.nl-brand a {
	display: inline-block;
	border-radius: 4px;
	color: var(--nl-mist);
	text-decoration: none;
}

/* The logo is cut from a picture on black, its glow faded to black before
 * every edge (tools/logo_header.py): "lighten" makes that black the header's
 * own black, so no rectangle and no cut show. 64px on phones, 112px from
 * 48rem (theme 0.1.4). Only in the header: the footer has no logo (0.1.5). */
.nl-brand__logo {
	display: block;
	width: auto;
	height: 64px;
	max-width: 100%;
	mix-blend-mode: lighten;
}

@media (min-width: 48rem) {
	.nl-header .nl-brand__logo {
		height: 112px;
	}
}

/* Dark chrome: focus in the brand gold (8.08:1 on the black). */
.nl-header :focus-visible,
.nl-footer :focus-visible {
	outline-color: var(--nl-gold);
}

/* Main menu (inc/nav.php): Tutorials · Power Tools · Partners ▾ · About.
 * Plain <nav><ul> (a core Navigation block would add ~20 KB of inline CSS).
 * Links and button 41.6px tall (WCAG 2.5.8 asks 24px); #E8EAED on the black
 * 16.4:1, the gold of hover, focus and the current page 8.08:1. */
.nl-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.nl-nav__item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.nl-nav a {
	display: inline-block;
	padding-block: 0.6rem;
	border-radius: 2px;
	color: var(--nl-mist);
	text-decoration: none;
}

.nl-nav a:hover {
	color: var(--nl-gold);
	text-decoration: underline;
}

/* The page being viewed, and the parent of a current submenu entry. */
.nl-nav a[aria-current="page"],
.nl-nav a.nl-nav__link--ancestor {
	color: var(--nl-gold);
}

.nl-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.nl-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-width: 1.75rem;
	min-height: 2.6rem;
	margin: 0 -0.35rem 0 0; /* the chevron sits close to "Partners", the gap to "About" as the others */
	padding: 0 0.3rem;
	border: 0;
	border-radius: 4px;
	background: none;
	color: var(--nl-mist);
	font: inherit;
	cursor: pointer;
}

.nl-nav__toggle:hover {
	color: var(--nl-gold);
}

.nl-nav__chevron {
	display: block;
	transition: transform 0.15s ease;
}

.nl-nav__toggle[aria-expanded="true"] .nl-nav__chevron {
	transform: rotate(180deg);
}

/* The submenu: closed by default. Open when the script says so
 * (nl-nav__item--open, with aria-expanded="true" on the button) or, without
 * the script, with the focus inside it (keyboard). */
.nl-nav__sub {
	display: none;
	flex-basis: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nl-nav__item--open > .nl-nav__sub,
.nl-nav:not(.nl-nav--js) .nl-nav__item--parent:focus-within > .nl-nav__sub {
	display: block;
}

.nl-nav__sub a {
	display: block;
	padding: 0.55rem 0.9rem;
}

/* Phones: the menu sits under the logo and the submenu opens in the flow,
 * on its own lines under "Partners": it pushes the page down, never covers it. */
@media (max-width: 47.99rem) {
	.nl-nav__item--open,
	.nl-nav:not(.nl-nav--js) .nl-nav__item--parent:focus-within {
		flex-basis: 100%;
	}

	.nl-nav__sub {
		margin-block-end: 0.35rem;
		border-left: 2px solid var(--nl-gold);
	}

	.nl-nav__sub a {
		padding-block: 0.5rem;
	}
}

/* From 48rem: a dropdown under "Partners", over the page; without the script
 * it also opens on hover. */
@media (min-width: 48rem) {
	.nl-nav__sub {
		position: absolute;
		z-index: 45;
		top: 100%;
		left: -0.9rem;
		width: max-content;
		min-width: 11rem;
		padding-block: 0.35rem;
		border: 1px solid rgb(232 234 237 / 0.16);
		border-top: 2px solid var(--nl-gold);
		border-radius: 0 0 var(--nl-radius) var(--nl-radius);
		background: var(--nl-night);
		box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 0.35);
	}

	.nl-nav:not(.nl-nav--js) .nl-nav__item--parent:hover > .nl-nav__sub {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nl-nav__chevron {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Page frame
 * ---------------------------------------------------------------- */

.nl-main {
	padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}

.nl-kicker {
	margin-block-end: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nl-kicker a {
	text-decoration: none;
}

.nl-article > .wp-block-post-title,
.nl-page-title {
	margin-block-start: 0.35rem;
}

.nl-dates {
	gap: 0.25rem 1.25rem;
	margin-block-start: 0.75rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--nl-muted);
}

.nl-dates > * {
	margin: 0;
}

.nl-date-published::before {
	content: "Published ";
}

.nl-date-updated::before {
	content: "Updated ";
}

.nl-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--nl-muted);
}

.nl-updated {
	font-size: var(--wp--preset--font-size--small);
	color: var(--nl-muted);
}

/* ------------------------------------------------------------------
 * Articles: reading column and sidebar (templates/single.html,
 * parts/sidebar.html). The article comes first in the DOM, the sidebar
 * after it. Up to 60rem (960px) one column, 42rem like the rest of the
 * site: the sidebar follows the article, as wide as the article. From
 * 60rem two columns inside the wide size (72rem): the article on the
 * left, up to --nl-measure (46rem), the sidebar on the right, and the
 * body text grows from 17.5px to 19px (at 1100px), so the wider column
 * keeps lines of about 70-85 characters. Pages, home, category archives
 * and search keep the 42rem column of theme.json.
 * ---------------------------------------------------------------- */

.nl-columns {
	--nl-measure: 42rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: clamp(2.5rem, 6vw, 3.5rem);
	padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}

/* The constrained blocks of the article (the article, the post content)
 * take the measure as their width instead of the 42rem of theme.json. */
.nl-columns > .nl-main {
	--wp--style--global--content-size: var(--nl-measure);
	--wp--style--global--wide-size: var(--nl-measure);
	min-width: 0;
	margin-block: 0;
	padding-block: 0;
}

.nl-columns > .nl-sidebar {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	max-width: var(--nl-measure);
	margin-block: 0;
	margin-inline: auto;
	padding-block-start: 1.75rem;
	border-top: 1px solid var(--nl-rule);
}

@media (min-width: 60rem) {
	.nl-columns {
		--nl-measure: 46rem;
		grid-template-columns: minmax(0, var(--nl-measure)) clamp(15rem, 22vw, 20rem);
		justify-content: space-between;
		column-gap: clamp(2rem, 4vw, 4rem);
	}

	.nl-columns > .nl-sidebar {
		max-width: none;
		margin-inline: 0;
		padding-block-start: 0;
		border-top: 0;
	}

	/* 17.5px at 960px, 19px from 1100px (where the article reaches 46rem). */
	.nl-columns .nl-content {
		font-size: clamp(1.09375rem, 0.45rem + 1.07vw, 1.1875rem);
	}
}

.nl-sidebar__section {
	margin: 0;
}

.nl-sidebar .nl-sidebar__section + .nl-sidebar__section {
	margin-block-start: 2rem;
}

.nl-sidebar .nl-sidebar__title {
	margin: 0 0 0.35rem;
	padding-block-end: 0.35rem;
	border-bottom: 2px solid var(--nl-fire);
	color: var(--nl-ink);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.nl-sidebar .nl-sidebar__list {
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	list-style: none;
}

.nl-sidebar .nl-sidebar__list li {
	margin: 0;
	border-bottom: 1px solid var(--nl-rule);
}

/* Block links: a target as tall as the row (WCAG 2.5.8). */
.nl-sidebar .nl-sidebar__list a {
	display: block;
	padding-block: 0.6rem;
	color: var(--nl-ink);
	font-weight: 600;
	text-decoration: none;
}

.nl-sidebar .wp-block-latest-posts__list a {
	padding-block-end: 0.1rem;
}

.nl-sidebar .nl-sidebar__list a:hover {
	color: var(--nl-accent);
	text-decoration: underline;
}

.nl-sidebar .wp-block-latest-posts__post-date {
	display: block;
	padding-block-end: 0.6rem;
	color: var(--nl-muted);
	font-size: inherit;
}

/* ------------------------------------------------------------------
 * Affiliate notice (first element of every article, with the challenge
 * line on the Prop Trading ones; texts in inc/legal.php)
 * ---------------------------------------------------------------- */

.nl-disclosure {
	padding: 0.55rem 0.8rem;
	border-left: 3px solid var(--nl-fire);
	border-radius: 0 var(--nl-radius) var(--nl-radius) 0;
	background: var(--nl-surface);
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

/* ------------------------------------------------------------------
 * Links that leave the site (inc/links.php): they open in a new tab;
 * the theme adds the class nl-external and, inside the link, a visually
 * hidden "(opens in a new tab)". The arrow is decoration: its alternative
 * text is empty, so screen readers read the hidden text instead. The
 * scroll containers (.nl-table, pre) are position: relative, so the hidden
 * text of a link scrolled out of view stays inside them.
 * ---------------------------------------------------------------- */

.nl-new-tab {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.nl-content a.nl-external::after {
	content: "\00a0\2197";
	content: "\00a0\2197" / "";
	font-weight: 400;
}

/* ------------------------------------------------------------------
 * Featured image (inc/hero.php): after the notice, with the credit of
 * the media below. Width and height are on the <img>, so the box is
 * reserved before the file arrives (no layout shift).
 * ---------------------------------------------------------------- */

.nl-hero {
	margin-block: 1.25rem 0;
}

.nl-hero__img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 30rem;
	margin-inline: auto;
	object-fit: contain;
	border-radius: var(--nl-radius);
	background: var(--nl-card);
}

.nl-hero__caption {
	margin-block-start: 0.4rem;
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.nl-hero__caption a {
	color: inherit;
}

/* ------------------------------------------------------------------
 * Call to action: <div class="nl-cta"> with a short paragraph and a
 * button link <a class="nl-cta-button" data-nl-offer> (the agents' tool
 * writes its href and rel="sponsored nofollow"). White on the dark fire
 * orange: 6.27:1. At least 48px tall, full width on phones. No script.
 * ---------------------------------------------------------------- */

.nl-content .nl-cta {
	margin-block-start: clamp(1.5rem, 4vw, 2rem);
	padding: 1rem 1.25rem 1.25rem;
	border: 1px solid var(--nl-rule);
	border-inline-start: 4px solid var(--nl-fire);
	border-radius: calc(var(--nl-radius) + 2px);
	background: var(--nl-tint);
}

.nl-content .nl-cta > * {
	margin-block: 0;
}

.nl-content .nl-cta > * + * {
	margin-block-start: 0.85rem;
}

.nl-content a.nl-cta-button {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	min-height: 3rem;
	padding: 0.8rem 1.5rem;
	border-radius: var(--nl-radius);
	background: var(--nl-accent);
	color: #fff;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.nl-content a.nl-cta-button:hover {
	background: var(--nl-accent-dark);
	color: #fff;
	text-decoration: underline;
}

.nl-content a.nl-cta-button:focus-visible {
	outline: 3px solid var(--nl-accent);
	outline-offset: 3px;
}

@media (max-width: 39.99rem) {
	.nl-content a.nl-cta-button {
		display: block;
		width: 100%;
	}
}

/* ------------------------------------------------------------------
 * Article body: the blocks of the article model (README, "Classi del
 * contenuto")
 * ---------------------------------------------------------------- */

.nl-content > section {
	margin-block-start: clamp(2rem, 5vw, 2.75rem);
}

.nl-content section > * {
	margin-block: 0;
}

.nl-content section > * + * {
	margin-block-start: 1rem;
}

.nl-content section > h2 {
	margin-block-end: 0;
}

.nl-content section > h3 {
	margin-block-start: 1.75rem;
}

.nl-content section > h3 + * {
	margin-block-start: 0.4rem;
}

.nl-content section ul {
	padding-inline-start: 1.25em;
}

.nl-content section li + li {
	margin-block-start: 0.35rem;
}

/* Tables: the theme wraps every table in .nl-table, which scrolls sideways
 * on narrow screens instead of squeezing the columns. position: relative makes
 * it the containing block of the hidden "(opens in a new tab)" of its links
 * (.nl-new-tab, position: absolute): a link in a column scrolled out of view
 * keeps its warning inside the table, which never widens the page. Not on the
 * links themselves: a positioned link would paint over the sticky first column
 * when the table scrolls. */
.nl-table {
	position: relative;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border: 1px solid var(--nl-rule);
	border-radius: var(--nl-radius);
	/* Scroll hint: a soft shadow on the side that has more columns. */
	background:
		linear-gradient(to left, var(--nl-card) 40%, rgb(255 255 255 / 0)) right / 2.5rem 100% no-repeat local,
		radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.14), rgb(0 0 0 / 0)) right / 0.75rem 100% no-repeat scroll,
		var(--nl-card);
}

.nl-table:focus-visible {
	outline: 2px solid var(--nl-accent);
	outline-offset: 2px;
}

.nl-table table,
.nl-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375em;
	line-height: 1.45;
}

.nl-content th,
.nl-content td {
	min-width: 6.5rem; /* columns stop shrinking: narrow screens scroll instead */
	padding: 0.55rem 0.75rem;
	border-bottom: 1px solid var(--nl-rule);
	text-align: left;
	vertical-align: top;
}

.nl-content thead th {
	background: var(--nl-surface);
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	white-space: nowrap;
}

.nl-content tbody tr:last-child > * {
	border-bottom: 0;
}

.nl-content tr > :first-child {
	min-width: 8.5rem;
}

/* First column stays in view while a wide table scrolls. */
.nl-table tbody td:first-child,
.nl-table tbody th:first-child {
	position: sticky;
	left: 0;
	background: var(--nl-card);
}

.nl-table thead th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
}

.nl-content td span[data-nl-field],
.nl-content td time {
	white-space: nowrap;
}

/* Key numbers (the rules of a challenge, the plans of a tool) */
.nl-key-numbers {
	padding: 1rem;
	border: 1px solid var(--nl-rule);
	border-top: 3px solid var(--nl-gold);
	border-radius: calc(var(--nl-radius) + 2px);
	background: var(--nl-card);
}

.nl-key-numbers .nl-table {
	border-width: 1px 0 0;
	border-radius: 0;
	margin-inline: -1rem;
	margin-block-end: -1rem;
}

.nl-key-numbers td:first-child {
	font-weight: 600;
}

.nl-key-numbers td:last-child,
.nl-compatibility td:last-child {
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
}

/* "Checked against the official rules ... on ..." */
.nl-verified {
	padding: 0.4rem 0.65rem;
	border: 1px solid var(--wp--custom--nl--official--border);
	border-radius: var(--nl-radius);
	background: var(--wp--custom--nl--official--bg);
	color: var(--wp--custom--nl--official--text);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.nl-verified::before {
	content: "\2713\00a0";
	content: "\2713\00a0" / "";
	font-weight: 700;
}

.nl-verified a {
	color: inherit;
}

/* What the numbers mean */
.nl-meaning > h3 {
	font-size: 1em; /* the body size of the article (19px on wide screens) */
}

/* Allowed / not allowed: check and cross marks, two columns on wide screens */
.nl-content .nl-can-cannot ul {
	list-style: none;
	padding-inline-start: 0;
}

.nl-can-cannot li {
	position: relative;
	padding-inline-start: 1.6em;
}

.nl-can-cannot li::before {
	position: absolute;
	left: 0;
	font-weight: 700;
	content: "\2713";
	content: "\2713" / "";
	color: var(--wp--custom--nl--official--text);
}

.nl-can-cannot h3:nth-of-type(2) + ul li::before {
	content: "\2715";
	content: "\2715" / "";
	color: var(--nl-ink);
}

@media (min-width: 40rem) {
	.nl-can-cannot {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2rem;
	}

	.nl-content .nl-can-cannot > * {
		margin-block-start: 0;
	}

	.nl-content .nl-can-cannot > h2 {
		grid-column: 1 / -1;
		margin-block-end: 0.75rem;
	}

	.nl-can-cannot > h3:nth-of-type(1),
	.nl-can-cannot > ul:nth-of-type(1) {
		grid-column: 1;
	}

	.nl-can-cannot > h3:nth-of-type(2),
	.nl-can-cannot > ul:nth-of-type(2) {
		grid-column: 2;
	}

	.nl-can-cannot > h3:nth-of-type(1),
	.nl-can-cannot > h3:nth-of-type(2) {
		grid-row: 2;
	}

	.nl-can-cannot > ul:nth-of-type(1),
	.nl-can-cannot > ul:nth-of-type(2) {
		grid-row: 3;
		margin-block-start: 0.4rem;
	}
}

/* Verification level badges. The theme adds data-nl-level to the cell;
 * symbol, text and border style differ, so the level reads without color too. */
[data-nl-level] {
	font-weight: 600;
	white-space: nowrap;
	text-transform: capitalize;
}

[data-nl-level]::before {
	display: inline-block;
	width: 1.2em;
	font-weight: 700;
}

td[data-nl-level] {
	border-left: 3px solid transparent;
}

:not(td)[data-nl-level] {
	display: inline-block;
	padding: 0.05rem 0.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
}

[data-nl-level="official"] {
	background: var(--wp--custom--nl--official--bg);
	color: var(--wp--custom--nl--official--text);
	border-color: var(--wp--custom--nl--official--border);
	border-style: solid;
}

[data-nl-level="official"]::before {
	content: "\2713";
	content: "\2713" / "";
}

[data-nl-level="community"] {
	background: var(--wp--custom--nl--community--bg);
	color: var(--wp--custom--nl--community--text);
	border-color: var(--wp--custom--nl--community--border);
	border-style: dashed;
}

[data-nl-level="community"]::before {
	content: "\25D0";
	content: "\25D0" / "";
}

[data-nl-level="untested"] {
	background: var(--wp--custom--nl--untested--bg);
	color: var(--wp--custom--nl--untested--text);
	border-color: var(--wp--custom--nl--untested--border);
	border-style: dotted;
}

[data-nl-level="untested"]::before {
	content: "?";
	content: "?" / "";
}

/* td keeps its row rule at the bottom; only the left edge is styled. */
td[data-nl-level] {
	border-top: 0;
	border-right: 0;
	border-bottom-style: solid;
	border-bottom-color: var(--nl-rule);
}

/* Known issues: one bar joins each symptom to its cause and fix. */
.nl-issues > h3,
.nl-issues > h3 + p {
	padding-inline-start: 0.85rem;
	border-left: 3px solid var(--wp--custom--nl--community--border);
}

.nl-issues > h3 {
	padding-block-start: 0.15rem;
	font-size: 1em;
}

.nl-content .nl-issues > h3 + p {
	margin-block-start: 0;
	padding-block: 0.35rem 0.15rem;
}

/* Where to start (the ↗ of the links is the one of every external link, above) */
.nl-buy-with a[data-nl-offer] {
	font-weight: 600;
}

/* FAQ */
.nl-faq > h3 {
	padding-block-start: 1rem;
	border-top: 1px solid var(--nl-rule);
	font-size: 1em;
}

.nl-faq > h2 + h3 {
	border-top: 0;
	padding-block-start: 0;
}

/* Changelog */
.nl-changelog {
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
}

.nl-changelog > h2 {
	color: var(--nl-ink);
}

.nl-content .nl-changelog ul {
	list-style: none;
	padding-inline-start: 0;
}

.nl-changelog time {
	font-weight: 600;
	color: var(--nl-ink);
}

/* Signature */
.nl-content .nl-signature {
	padding-block-start: 1rem;
	border-top: 1px solid var(--nl-rule);
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ------------------------------------------------------------------
 * Lists: home, category, search
 * ---------------------------------------------------------------- */

.nl-list .wp-block-post-template {
	margin-block-start: 1.5rem;
	border-top: 2px solid var(--nl-ink);
}

.nl-list .wp-block-post {
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--nl-rule);
}

.nl-list .wp-block-post > * {
	margin-block: 0;
}

.nl-list .wp-block-post > * + * {
	margin-block-start: 0.4rem;
}

.nl-list .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
}

.nl-list .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.nl-list .wp-block-post-date {
	color: var(--nl-muted);
	font-size: var(--wp--preset--font-size--small);
}

.nl-list .wp-block-query-pagination {
	margin-block-start: 1.5rem;
	font-weight: 600;
}

/* An archive with no article yet (templates/archive.html). */
.nl-list .nl-empty {
	margin-block: 1.5rem 0;
	padding-block-start: 1.1rem;
	border-top: 2px solid var(--nl-ink);
	font-size: var(--wp--preset--font-size--large);
}

.nl-list .nl-empty__home {
	margin-block: 0.6rem 0;
	font-weight: 600;
}

/* Category description on top of the archive (only when the category has one). */
.nl-category-intro {
	margin-block-start: 0.75rem;
}

.nl-category-intro > * {
	margin-block: 0;
}

.nl-category-intro > * + * {
	margin-block-start: 0.75rem;
}

.nl-search .wp-block-search__input {
	min-height: 2.75rem;
	border: 1px solid var(--nl-muted);
	border-radius: var(--nl-radius);
	padding-inline: 0.75rem;
}

.nl-search .wp-block-search__button {
	margin-inline-start: 0.5rem;
	border-radius: var(--nl-radius);
}

/* ------------------------------------------------------------------
 * Footer: black, the brand line on top, the legal links, the short
 * affiliate disclosure, the risk warning (inc/legal.php) and the copyright.
 * No logo and no site name on top (theme 0.1.5): the links come first.
 * ---------------------------------------------------------------- */

.nl-footer {
	margin-block-start: 0;
	padding-block: calc(2rem + 3px) 2.5rem;
	background: var(--nl-brand-line) top / 100% 3px no-repeat, var(--nl-night);
	color: var(--nl-grey);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.55;
}

.nl-footer__inner > * {
	margin-block: 0;
}

.nl-footer__inner > * + * {
	margin-block-start: 0.85rem;
}

.nl-footer a {
	color: var(--nl-mist);
}

.nl-footer a:hover {
	color: var(--nl-gold);
}

/* The legal links open the footer (0.1.5): the 0.5rem top margin Twenty
 * Twenty-Five gives every list item would leave a strip of empty space above
 * them, so it goes, and the row gap takes it over (rows stay 0.75rem apart,
 * as before). */
.nl-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

.nl-footer .nl-footer__links li {
	margin: 0;
}

.nl-footer__links a {
	display: inline-block;
	padding-block: 0.4rem;
}

.nl-footer__disclosure,
.nl-footer__risk {
	max-width: 52rem;
}

.nl-footer__disclosure {
	color: var(--nl-mist);
}

.nl-copyright {
	padding-block-start: 0.85rem;
	border-top: 1px solid rgb(232 234 237 / 0.14);
}

/* ------------------------------------------------------------------
 * Cookie notice (inc/notice.php): bottom bar, not modal.
 * ---------------------------------------------------------------- */

.nl-notice {
	position: fixed;
	z-index: 50;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem max(1rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	border-top: 2px solid var(--nl-gold);
	background: var(--nl-ink);
	color: var(--nl-mist);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	box-shadow: 0 -2px 12px rgb(0 0 0 / 0.15);
}

.nl-notice[hidden] {
	display: none;
}

.nl-notice p {
	flex: 1 1 12rem;
	margin: 0;
}

.nl-notice__short {
	display: none;
}

/* Narrow screens: the short text, so the bar stays small. */
@media (max-width: 29.99rem) {
	.nl-notice__long:has(+ .nl-notice__short) {
		display: none;
	}

	.nl-notice__short {
		display: inline;
	}
}

.nl-notice a {
	color: inherit;
	text-decoration: underline;
}

.nl-notice__ok {
	min-width: 4.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 1.1rem;
	border: 0;
	border-radius: var(--nl-radius);
	background: var(--nl-gold);
	color: var(--nl-night);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.nl-notice a:focus-visible,
.nl-notice__ok:focus-visible {
	outline: 2px solid var(--nl-gold);
	outline-offset: 2px;
}

@media (min-width: 48rem) {
	.nl-notice {
		justify-content: center;
	}

	.nl-notice p {
		flex: 0 1 46rem;
	}
}

/* Counter opt-out in the privacy policy (assets/js/nl-counter-choice.js). */
.nl-counter-choice {
	padding: 0.75rem 1rem;
	border: 1px solid var(--nl-rule);
	border-radius: var(--nl-radius);
	background: var(--nl-card);
}

.nl-counter-choice [role="status"] {
	display: block;
	margin-block-end: 0.6rem;
	font-weight: 600;
}

.nl-counter-choice button {
	min-height: 2.75rem;
	padding: 0.5rem 1.1rem;
	border: 0;
	border-radius: var(--nl-radius);
	background: var(--nl-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.nl-counter-choice button:hover {
	background: var(--nl-accent-dark);
}

.nl-counter-choice button:focus-visible {
	outline: 2px solid var(--nl-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * Print: the article without the chrome, on white.
 * ---------------------------------------------------------------- */

@media print {
	.nl-nav,
	.nl-notice,
	.nl-sidebar,
	.nl-footer__links,
	.nl-list .wp-block-query-pagination {
		display: none !important;
	}

	body,
	.nl-header,
	.nl-footer,
	.nl-key-numbers,
	.nl-table {
		background: #fff !important;
		color: #000 !important;
	}

	.nl-brand__logo {
		mix-blend-mode: normal;
		filter: invert(1) grayscale(1);
	}

	.nl-table {
		overflow: visible;
	}

	.nl-content a.nl-external::after {
		content: none;
	}

	.nl-content a.nl-cta-button {
		padding: 0;
		background: none;
		color: inherit;
		text-decoration: underline;
	}
}
