/* =========================================================================
   PB design kit · B "Fotocopia" — PREVIEW LAYER (local clone only).
   Loaded after pushkar.css and the kit's pb-components.css. It moves the
   current theme onto the kit: PB Terminale for big words, Courier Prime for
   labels, buttons and navigation, Atkinson for reading, dotted leaders,
   one green (verde), soft corners only on buttons.
   ========================================================================= */

:root {
	--pb-display: var(--wp--preset--font-family--type);   /* small capitals: Courier Prime */
	--pb-letter: var(--wp--preset--font-family--display);  /* PB Terminale, 22px and up only */
	--pb-ink: #0C0C0B;
	--pb-paper: #EFEDE6;
	--pb-line: var(--wp--preset--color--rule);
	--pb-line-strong: var(--wp--preset--color--ink-dim);
	--pb-dots: 2px dotted var(--wp--preset--color--ink-dim);
}
body { font-synthesis: none; }

/* ---------- Big words: PB Terminale, one weight, no stretching ---------- */
h1, h2, h3, h4, .wp-block-heading, .wp-block-post-title {
	font-family: var(--pb-letter);
	font-weight: 400 !important;
	font-stretch: normal !important;
	letter-spacing: 0 !important;
}
h5, h6 { font-family: var(--wp--preset--font-family--type); font-weight: 700 !important; }
h1 { line-height: 0.9; }
h2, h3, h4 { line-height: 1; }

/* the product name in the hero: the kit's display-xl */
/* sized so the longest word fits the screen: PB-PI (2.5em, PB Terminale), PB-ACE (3.5em), SOFTWARE (5.1em), PB-S4MPLER (6em) */
.wp-block-cover.pb-hero--product h1 {
	font-size: min(212px, calc((100vw - 2 * var(--pb-gutter)) / 5.2)) !important;
	line-height: 0.82 !important;
	margin-block: 0.08em 0.12em !important;
}
.wp-block-cover.pb-hero--product.pb-hero--photo h1 { font-size: min(212px, calc((100vw - 2 * var(--pb-gutter)) / 2.7)) !important; }
.wp-block-cover.pb-hero--product.pb-hero--long h1 { font-size: min(150px, calc((100vw - 2 * var(--pb-gutter)) / 6.2)) !important; white-space: nowrap; }
/* PUSHKAR BRAND on the home: two words, so a little smaller to fit a phone */
.wp-block-cover.pb-hero--home h1 {
	font-size: clamp(60px, 12.4vw, 188px) !important;
	line-height: 0.86 !important;
}

/* ---------- Typed labels: Courier Prime capitals ---------- */
.pb-label, .pb-claim, .pb-device__kind, .pb-covers figcaption, .pb-links, .pb-index a,
.is-style-signal-chain li, .wpcf7 label, .pb-footer__tagline {
	font-family: var(--wp--preset--font-family--type) !important;
	font-stretch: normal !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.pb-label { font-size: 14px; color: var(--wp--preset--color--ink-dim); }
.pb-hero--band .pb-label, .pb-connect--intro .pb-label { color: var(--wp--preset--color--ink-dim); }
.pb-claim { font-size: 18px; line-height: 1.3; color: var(--wp--preset--color--ink); }

/* opening paragraph: the kit's lede */
.pb-lead { font-size: clamp(20px, 1.05rem + 0.5vw, 25px); line-height: 1.4; }

/* ---------- Header: logo, PUSHKAR BRAND, menu in Courier capitals ---------- */
/* Jacopo, 1 Dec: no PUSHKAR BRAND wordmark in the header, only the logo on the left, as now (same size) */
.pb-header__inner { border-bottom: var(--pb-dots); }
.pb-nav, .pb-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--type) !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase;
}
/* the current page: ink with dotted underline (the green stays for the main button) */
.pb-nav .wp-block-navigation-item__content::after {
	height: 0; background: none; border-bottom: 2px dotted currentColor; bottom: 0.2rem;
}
.pb-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--verde); }
.pb-nav .wp-block-navigation__submenu-container { border-radius: 0 !important; }
.pb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 16px !important; }
.pb-nav .wp-block-navigation__responsive-container-open { font-family: var(--wp--preset--font-family--type); }

/* ---------- Buttons: Courier bold capitals, soft corners, one green ---------- */
.wp-block-button .wp-block-button__link,
.wp-block-cover.pb-hero .wp-block-button .wp-block-button__link,
.wpcf7 input[type="submit"] {
	font-family: var(--wp--preset--font-family--type) !important;
	font-stretch: normal !important;
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	min-height: 44px;
	padding: 14px 22px;
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 10px;
	background: transparent;
	color: var(--wp--preset--color--ink) !important;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-cover.pb-hero .wp-block-button .wp-block-button__link:hover {
	background: transparent; border-color: var(--wp--preset--color--verde); color: var(--wp--preset--color--verde) !important;
}
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-cover.pb-hero .wp-block-button.is-style-fill .wp-block-button__link,
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--verde);
	border-color: var(--wp--preset--color--verde);
	color: var(--wp--preset--color--on-verde) !important;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-cover.pb-hero .wp-block-button.is-style-fill .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: var(--wp--preset--color--ground) !important;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after { display: none; }
.wp-block-button .wp-block-button__link:focus-visible { outline: 2px dotted var(--wp--preset--color--verde); outline-offset: 3px; }

/* ---------- The row of figures: PB Terminale numerals, typed labels, dotted rules ---------- */
ul.pb-numbers { border-top: var(--pb-dots); border-bottom: var(--pb-dots); }
.pb-numbers li { font-family: var(--wp--preset--font-family--type); font-size: 14px; line-height: 1.35; color: var(--wp--preset--color--ink-dim); }
.pb-numbers li + li { border-left: var(--pb-dots); }
.pb-numbers li strong {
	font-family: var(--pb-letter); font-weight: 400; font-size: clamp(40px, 2rem + 2vw, 66px);
	line-height: 0.9; color: var(--wp--preset--color--ink);
}
@media (max-width: 53.75rem) { .pb-numbers li:nth-child(-n+3) { border-bottom: var(--pb-dots); } }
@media (max-width: 32.5rem) {
	.pb-numbers li:nth-child(4) { border-left: var(--pb-dots); }
	.pb-numbers li:nth-child(-n+4) { border-bottom: var(--pb-dots); }
}

/* ---------- Specification lists: the kit's spec fact list ---------- */
.is-style-specs { border-top: 1px solid var(--wp--preset--color--rule); font-size: 18px; }
.is-style-specs li { border-bottom: 1px solid var(--wp--preset--color--rule); padding: 11px 0; }
.is-style-specs li > strong:first-child {
	font-family: var(--wp--preset--font-family--type) !important;
	font-stretch: normal !important;
	font-weight: 700; font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase;
	color: var(--wp--preset--color--ink-dim);
}
.is-style-specs.pb-specs li > strong:first-child,
.is-style-specs.pb-needs li > strong:first-child { flex-basis: 10.5rem; font-size: 16px; }
.is-style-specs.pb-offer li > strong:first-child { flex-basis: 8rem; }

/* ---------- Reasons, FAQ: dotted rows, typed statements ---------- */
.pb-reasons li { border-bottom: var(--pb-dots); font-family: var(--wp--preset--font-family--type); font-size: 18px; line-height: 1.45; }
.pb-reasons li::before {
	font-family: var(--pb-letter); font-stretch: normal; font-weight: 400; font-size: 22px; line-height: 1.1;
	color: var(--wp--preset--color--ink-dim);
}
.pb-faq summary { font-family: var(--wp--preset--font-family--type); font-stretch: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.pb-faq summary::after { color: var(--wp--preset--color--ink); }
.pb-faq details { border-bottom: var(--pb-dots); }

/* ---------- Pictures stay square; captions typed ---------- */
.wp-block-image img, .wp-block-cover, .wp-block-cover img { border-radius: 0 !important; }
figcaption, .wp-element-caption { font-family: var(--wp--preset--font-family--type); font-size: 14px; color: var(--wp--preset--color--ink-dim); }

/* ---------- Separators and section rules: dotted ---------- */
hr.wp-block-separator { border: 0 !important; border-top: var(--pb-dots) !important; background: none !important; height: 0 !important; opacity: 1; }

/* ---------- Footer ---------- */
.pb-footer .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--type); }
.pb-footer__tagline { font-size: 14px; color: var(--wp--preset--color--ink-dim); }

/* ---------- Fixes for the narrower kit column (1200px) ---------- */
/* the questions line up with their heading again */
.pb-faq .wp-block-details { margin-left: max(0px, (100% - var(--pb-col)) / 2); }

/* our inline notes keep their links on one line (the kit's .pb-note is a flex box) */
p.pb-note { display: block; padding: 10px 14px; border: 2px solid var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--type); font-size: 15px; line-height: 1.45; }

/* "How it goes": the steps are typed boxes, the arrows between them ink, not green */
.is-style-signal-chain li { border-color: var(--wp--preset--color--ink-dim); border-radius: 0; }
.is-style-signal-chain li + li::before { background: var(--wp--preset--color--ink-dim); }
.is-style-signal-chain li + li::after { border-top-color: var(--wp--preset--color--ink-dim); }
@media (min-width: 48rem) {
	.is-style-signal-chain li + li::after { border-top-color: transparent; border-left-color: var(--wp--preset--color--ink-dim); }
}

/* our header carries the class .pb-header too: one dotted line only, under the column */
header.pb-header { border-bottom: 0; padding-bottom: 0; }

/* product hero as on the kit's title card: the name, then what it is, typed, under it */
.wp-block-cover.pb-hero--product .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: flex-start; }
.wp-block-cover.pb-hero--product .wp-block-cover__inner-container > * { margin-block: 0; }
.wp-block-cover.pb-hero--product .pb-claim { order: 1; margin-top: 0.35rem !important; font-size: clamp(18px, 0.9rem + 0.5vw, 24px); }
.wp-block-cover.pb-hero--product .pb-lead { order: 2; margin-top: 1.4rem !important; }
.wp-block-cover.pb-hero--product .wp-block-buttons { order: 3; margin-top: 1.6rem !important; }

/* the phone menu button: a button, so soft corners */
.pb-nav .wp-block-navigation__responsive-container-open { border-radius: 10px; }
/* the bigger name needs a slightly taller hero so it sits on the dark table, not the wall; no text shadow (the kit has no depth) */
@media (min-width: 48rem) {
	.wp-block-cover.pb-hero--product { min-height: clamp(32rem, 94svh, 60rem); }
}
.wp-block-cover.pb-hero--product .pb-claim { text-shadow: none; }
.wp-block-cover.pb-hero--product .pb-lead { margin-top: 1.1rem !important; }
.wp-block-cover.pb-hero--product .wp-block-buttons { margin-top: 1.3rem !important; }

/* the batch terms: the kit's fact list (typed label and value, dotted rows) */
.is-style-specs.pb-offer { border-top: var(--pb-dots); font-family: var(--wp--preset--font-family--type); font-size: 19px; }
.is-style-specs.pb-offer li { border-bottom: var(--pb-dots); padding: 12px 0 8px; }
.is-style-specs.pb-offer li > strong:first-child { flex-basis: 8.5rem; font-size: 18px; color: var(--wp--preset--color--ink); }
/* the kit's .pb-header is a flex row; ours is a wrapper around the inner row: keep it a block,
   so the logo sits on the left and the menu on the right, as now */
header.pb-header { display: block; }
