/*
Theme Name: PlainSpecs
Theme URI: https://plainspecs.com/
Author: PlainSpecs
Description: Child theme of Twenty Twenty-Five for PlainSpecs, tech specs explained from the datasheet. System fonts, no external requests, two small scripts (the cookie notice, 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.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plainspecs
*/

/* ------------------------------------------------------------------
 * Base. Colors, fonts and sizes come from theme.json (presets); this
 * file only adds what theme.json cannot express. Mobile first.
 * ---------------------------------------------------------------- */

:root {
	--ps-ink: var(--wp--preset--color--contrast);
	--ps-paper: var(--wp--preset--color--base);
	--ps-accent: var(--wp--preset--color--accent-1);
	--ps-muted: var(--wp--preset--color--accent-4);
	--ps-surface: var(--wp--preset--color--accent-5);
	--ps-rule: var(--wp--preset--color--accent-6);
	--ps-card: #fff;
	--ps-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(--ps-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 .ps-table */
	overflow-x: auto;
}

/* Numbers line up: tables, dates and every value traced to the record. */
table,
time,
[data-ps-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(--ps-paper);
	clip-path: none;
	color: var(--ps-ink);
	display: block;
	height: auto;
	left: 0.5rem;
	padding: 0.75rem 1rem;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

/* ------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------- */

.ps-header {
	border-bottom: 1px solid var(--ps-rule);
	background: var(--ps-paper);
}

.ps-header__bar {
	padding-block: 0.75rem;
	row-gap: 0.25rem;
	column-gap: 1.5rem;
}

.ps-wordmark {
	margin: 0;
	line-height: 1.2;
}

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

.ps-wordmark a:hover {
	text-decoration: none;
}

.ps-wordmark__accent {
	color: var(--ps-accent);
}

/* Plain <nav><ul> (a core Navigation block would add ~20 KB of inline CSS). */
.ps-nav ul {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.ps-nav a {
	display: inline-block;
	padding-block: 0.6rem; /* about 44px touch target with the line height */
	color: var(--ps-ink);
	text-decoration: none;
}

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

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

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

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

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

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

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

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

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

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

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

.ps-updated {
	font-size: var(--wp--preset--font-size--small);
	color: var(--ps-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 --ps-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 (measured in Chrome). Pages,
 * home, category archives and search keep the 42rem column of theme.json.
 * ---------------------------------------------------------------- */

.ps-columns {
	--ps-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. */
.ps-columns > .ps-main {
	--wp--style--global--content-size: var(--ps-measure);
	--wp--style--global--wide-size: var(--ps-measure);
	min-width: 0;
	margin-block: 0;
	padding-block: 0;
}

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

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

	.ps-columns > .ps-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). */
	.ps-columns .ps-content {
		font-size: clamp(1.09375rem, 0.45rem + 1.07vw, 1.1875rem);
	}
}

.ps-sidebar__section {
	margin: 0;
}

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

.ps-sidebar .ps-sidebar__title {
	margin: 0 0 0.35rem;
	color: var(--ps-muted);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ps-sidebar .ps-sidebar__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ps-rule);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	list-style: none;
}

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

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

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

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

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

/* ------------------------------------------------------------------
 * Affiliate disclosure (first element of every post and page)
 * ---------------------------------------------------------------- */

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

/* ------------------------------------------------------------------
 * Links that leave the site (inc/links.php, D25): they open in a new tab;
 * the theme adds the class ps-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 (.ps-table, pre) are position: relative, so the hidden
 * text of a link scrolled out of view stays inside them.
 * ---------------------------------------------------------------- */

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

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

/* ------------------------------------------------------------------
 * Product image (inc/hero.php, D25): after the disclosure, 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).
 * ---------------------------------------------------------------- */

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

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

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

.ps-hero__caption a {
	color: inherit;
}

/* ------------------------------------------------------------------
 * Call to action (D25): <div class="ps-cta"> with a short paragraph and
 * a button link <a class="ps-cta-button" data-ps-offer> (ps_site.py
 * writes its href and rel="sponsored nofollow"), right after the key
 * numbers. White on the accent: 7.2:1. Full width on phones. No script.
 * ---------------------------------------------------------------- */

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

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

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

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

.ps-content a.ps-cta-button:hover {
	background: var(--wp--preset--color--accent-3);
	color: #fff;
	text-decoration: underline;
}

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

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

/* ------------------------------------------------------------------
 * Article body: the ten blocks of _modelli/articolo.html
 * ---------------------------------------------------------------- */

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

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

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

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

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

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

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

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

/* Tables: the theme wraps every table in .ps-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
 * (.ps-new-tab, position: absolute): a link in a column scrolled out of view
 * keeps its warning inside the table, which never widens the page (review of
 * 28/10/2026). Not on the links themselves: a positioned link would paint over
 * the sticky first column when the table scrolls. */
.ps-table {
	position: relative;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	border: 1px solid var(--ps-rule);
	border-radius: var(--ps-radius);
	/* Scroll hint: a soft shadow on the side that has more columns. */
	background:
		linear-gradient(to left, var(--ps-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(--ps-card);
}

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

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

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

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

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

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

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

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

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

/* 2. Key numbers */
.ps-key-numbers {
	padding: 1rem;
	border: 1px solid var(--ps-rule);
	border-radius: calc(var(--ps-radius) + 2px);
	background: var(--ps-card);
}

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

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

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

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

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

.ps-verified a {
	color: inherit;
}

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

/* 4. What it can and can't do: check and cross marks, two columns on wide screens */
.ps-content .ps-can-cannot ul {
	list-style: none;
	padding-inline-start: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

:not(td)[data-ps-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-ps-level="manufacturer"] {
	background: var(--wp--custom--ps--manufacturer--bg);
	color: var(--wp--custom--ps--manufacturer--text);
	border-color: var(--wp--custom--ps--manufacturer--border);
	border-style: solid;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ps-list .wp-block-post-template {
	margin-block-start: 1.5rem;
	border-top: 1px solid var(--ps-rule);
}

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

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

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

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

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

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

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

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

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

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

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

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

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */

.ps-footer {
	margin-block-start: 0;
	padding-block: 2rem 2.5rem;
	border-top: 1px solid var(--ps-rule);
	color: var(--ps-muted);
	font-size: var(--wp--preset--font-size--small);
}

.ps-footer p {
	margin-block: 0.5rem 0;
}

.ps-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.ps-footer__links a {
	display: inline-block;
	padding-block: 0.4rem;
	color: var(--ps-ink);
}

.ps-amazon {
	color: var(--ps-ink);
}

/* ------------------------------------------------------------------
 * Cookie notice (sito/cookie-banner.md): bottom bar, not modal.
 * ---------------------------------------------------------------- */

.ps-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));
	background: var(--ps-ink);
	color: var(--ps-paper);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	box-shadow: 0 -2px 12px rgb(0 0 0 / 0.15);
}

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

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

.ps-notice__short {
	display: none;
}

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

	.ps-notice__short {
		display: inline;
	}
}

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

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

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

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

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

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

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

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

.ps-counter-choice button:hover {
	background: var(--wp--preset--color--accent-3);
}

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

/* ------------------------------------------------------------------
 * Print: the spec sheet without the chrome.
 * ---------------------------------------------------------------- */

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

	body,
	.ps-key-numbers,
	.ps-table {
		background: #fff !important;
	}

	.ps-table {
		overflow: visible;
	}

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

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