/*
Theme Name:   PDF Wire
Theme URI:    https://pdfwire.com/
Description:  Accessible child theme for Astra, made for pdfwire.com. Atkinson Hyperlegible Next and JetBrains Mono are self-hosted, so pages make no requests to Google. Colours meet WCAG 2.2 AA, with a dark scheme that follows the visitor's system setting, visible focus rings, forced-colours support and reduced motion. Includes block patterns and block styles for the PDF Wire pages.
Author:       PDF Wire
Author URI:   https://pdfwire.com/
Template:     astra
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  pdfwire
Tags:         custom-colors, block-patterns, block-styles
*/

/* ==========================================================================
   1. Fonts (self-hosted, SIL Open Font License; see fonts/OFL-*.txt)
   ========================================================================== */
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("fonts/AtkinsonHyperlegibleNext-Variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("fonts/AtkinsonHyperlegibleNext-Italic-Variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2");
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   2. Tokens. Astra's nine global colours point at these, so the Customizer
      palette, the block editor and the front end stay in step.
   ========================================================================== */
:root {
	--pw-brand: #1D44B8;        /* links, buttons, focus: 8.2:1 on white */
	--pw-brand-hover: #122E80;  /* 12.2:1 */
	--pw-ink: #16181D;          /* headings: 17.8:1 */
	--pw-text: #2E333D;         /* body: 12.7:1 */
	--pw-surface: #F4F5F7;      /* bands, footer */
	--pw-paper: #FFFFFF;
	--pw-line: #E1E4E8;         /* decorative borders */
	--pw-muted: #3E4654;        /* secondary text: 9.5:1 */
	--pw-tint: #EDF1FC;         /* notices */
	--pw-tint-line: #C3CFF2;
	--pw-on-brand: #FFFFFF;
	--pw-band: #16181D;         /* dark band background */
	--pw-band-text: #D6DAE0;
	--pw-band-link: #A8BEFF;

	--pw-tag-h: #1D44B8;
	--pw-tag-p: #5B6472;
	--pw-tag-figure: #6A3DB8;
	--pw-tag-table: #0B6B78;

	--pw-font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	--pw-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--pw-wrap: 1200px;
	--pw-gutter: clamp(16px, 4vw, 24px);
	--pw-radius: 12px;

	--ast-global-color-0: var(--pw-brand);
	--ast-global-color-1: var(--pw-brand-hover);
	--ast-global-color-2: var(--pw-ink);
	--ast-global-color-3: var(--pw-text);
	--ast-global-color-4: var(--pw-surface);
	--ast-global-color-5: var(--pw-paper);
	--ast-global-color-6: var(--pw-line);
	--ast-global-color-7: var(--pw-muted);
	--ast-global-color-8: var(--pw-tint);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--pw-brand: #A8BEFF;       /* 10.1:1 on #121418 */
		--pw-brand-hover: #CAD7FF;
		--pw-ink: #FFFFFF;
		--pw-text: #E6E8EB;        /* 15.0:1 */
		--pw-surface: #1B1E24;
		--pw-paper: #121418;
		--pw-line: #2E333B;
		--pw-muted: #AEB4BE;       /* 8.8:1 */
		--pw-tint: #1C2440;
		--pw-tint-line: #34407A;
		--pw-on-brand: #121418;
		--pw-band: #0B0C0F;
		--pw-band-text: #D6DAE0;
		--pw-band-link: #A8BEFF;
		color-scheme: dark;
	}
	/* The logo is dark ink on transparent; flip it for dark pages. */
	.custom-logo, .site-logo-img img { filter: invert(1) hue-rotate(180deg); }
}

/* ==========================================================================
   3. Base
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--pw-font);
}
body {
	background-color: var(--pw-paper);
	color: var(--pw-text);
	font-size: 18px;
	font-size: 1.125rem;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6),
.site-title, .site-title a {
	font-family: var(--pw-font);
	font-weight: 700;
	color: var(--pw-ink);
	line-height: 1.2;
}
h1, .entry-content h1 { font-size: clamp(2.125rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
h2, .entry-content h2 { font-size: clamp(1.75rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3, .entry-content h3 { font-size: clamp(1.3rem, 2vw, 1.45rem); line-height: 1.3; }
h4, .entry-content h4 { font-size: 1.2rem; line-height: 1.35; }
.entry-content :where(h2) { margin-top: 2.2em; margin-bottom: 0.5em; }
.entry-content :where(h3) { margin-top: 1.6em; margin-bottom: 0.4em; }
.entry-content > :first-child { margin-top: 0; }

.entry-content p,
.entry-content li { max-width: 70ch; }

/* Links: underlined in running text, thicker on hover. */
a { color: var(--pw-brand); }
a:hover, a:focus { color: var(--pw-brand-hover); }
.entry-content a:where(:not(.wp-block-button__link, .wp-element-button)),
.site-footer .widget a,
.site-footer .footer-widget-area a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
.entry-content a:where(:not(.wp-block-button__link, .wp-element-button)):hover {
	text-decoration-thickness: 3px;
}

/* One focus style everywhere. */
:focus { outline: none; }
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible,
.ast-custom-button:focus-visible,
.menu-toggle:focus-visible {
	outline: 3px solid var(--pw-brand) !important;
	outline-offset: 3px !important;
	box-shadow: none;
	border-radius: 4px;
}

/* Skip link: Astra prints it; make it obvious when focused. */
.skip-link.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 16px;
	top: 16px;
	z-index: 100000;
	padding: 12px 18px;
	background: var(--pw-ink);
	color: var(--pw-paper);
	font-size: 1rem;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
}

::selection { background: var(--pw-tint); color: var(--pw-ink); }

code, kbd, pre, samp, tt { font-family: var(--pw-mono); font-size: 0.88em; }
:not(pre) > code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--pw-surface);
	color: var(--pw-ink);
}
kbd {
	display: inline-block;
	padding: 0 0.4em;
	border: 1px solid #AEB4BE;
	border-bottom-width: 2px;
	border-radius: 4px;
	background: var(--pw-paper);
	color: var(--pw-ink);
	line-height: 1.5;
}

hr, .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--pw-line);
	opacity: 1;
}

/* ==========================================================================
   4. Header (Astra header builder)
   ========================================================================== */
.site-header,
.ast-primary-header-bar,
.main-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background-color: var(--pw-paper);
	border-bottom: 1px solid var(--pw-line);
}
.site-title a,
.site-title a:hover { color: var(--pw-ink); text-decoration: none; letter-spacing: -0.01em; }

.main-header-menu .menu-link,
.ast-builder-menu .menu-item > .menu-link {
	min-height: 44px;
	display: flex;
	align-items: center;
	color: var(--pw-ink);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
}
.main-header-menu .menu-link:hover,
.ast-builder-menu .menu-item > .menu-link:hover { color: var(--pw-brand); }
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.ast-builder-menu .current-menu-item > .menu-link {
	color: var(--pw-brand);
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 10px;
}

/* Header button element ("Open the editor"). */
.ast-header-button-1 .ast-custom-button,
.ast-header-button-1 .ast-custom-button-link .ast-custom-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	padding: 0 20px;
	border-radius: 8px;
	border: 0;
	background-color: var(--pw-brand);
	color: var(--pw-on-brand);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
}
.ast-header-button-1 .ast-custom-button:hover { background-color: var(--pw-brand-hover); color: var(--pw-on-brand); }

/* Mobile menu toggle: a labelled button, not a bare icon. */
.menu-toggle,
.ast-mobile-menu-trigger-minimal,
.ast-mobile-menu-trigger-outline,
.ast-mobile-menu-trigger-fill {
	min-height: 48px;
	min-width: 48px;
	border: 2px solid var(--pw-ink) !important;
	border-radius: 8px !important;
	background: var(--pw-paper) !important;
	color: var(--pw-ink) !important;
}
.menu-toggle .ast-mobile-svg { fill: var(--pw-ink); }
.ast-mobile-header-content,
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
	background-color: var(--pw-paper);
}
.ast-mobile-header-content .menu-link,
.ast-mobile-popup-drawer .menu-link { min-height: 48px; border-color: var(--pw-line) !important; }

/* ==========================================================================
   5. Page title band (inner pages)
   ========================================================================== */
.page .entry-header,
.single .entry-header {
	position: relative;
	margin-bottom: 2.5rem;
	padding: 2.5rem 0 2.75rem;
	background: var(--pw-surface);
	box-shadow: 0 0 0 100vmax var(--pw-surface);
	clip-path: inset(0 -100vmax);
	border-bottom: 1px solid var(--pw-line);
}
.page .entry-header .entry-title,
.single .entry-header .entry-title {
	margin: 0;
	font-size: clamp(2.125rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.ast-breadcrumbs, .ast-breadcrumbs-wrapper { font-size: 0.9375rem; color: var(--pw-muted); }
.ast-breadcrumbs a { color: var(--pw-brand); }

/* ==========================================================================
   6. Core blocks
   ========================================================================== */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link,
.wp-element-button,
.ast-button,
button.ast-button,
input[type="submit"],
.wp-block-search__button {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	border: 2px solid var(--pw-brand);
	border-radius: 8px;
	background-color: var(--pw-brand);
	color: var(--pw-on-brand);
	font-family: var(--pw-font);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.ast-button:hover,
input[type="submit"]:hover {
	background-color: var(--pw-brand-hover);
	border-color: var(--pw-brand-hover);
	color: var(--pw-on-brand);
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-element-button {
	background: transparent;
	border-color: var(--pw-ink);
	color: var(--pw-ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--pw-ink);
	border-color: var(--pw-ink);
	color: var(--pw-paper);
}

/* Tables: header row, rules, and scrolling inside their own box. */
.wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--pw-line);
	border-radius: 10px;
	margin: 1.5em 0;
}
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; margin: 0; }
.wp-block-table th,
.wp-block-table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--pw-line);
	text-align: left;
	vertical-align: top;
}
.wp-block-table thead th {
	background: var(--pw-surface);
	color: var(--pw-ink);
	border-bottom: 2px solid var(--pw-ink);
}
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table figcaption,
.wp-block-table .wp-element-caption {
	padding: 10px 16px;
	font-size: 0.9375rem;
	color: var(--pw-muted);
	text-align: left;
	margin: 0;
	border-top: 1px solid var(--pw-line);
}

/* Details (FAQ). Keeps the browser's own open/close marker. */
.wp-block-details {
	border-top: 1px solid var(--pw-line);
	border-bottom: 1px solid var(--pw-line);
	margin: 0;
	padding: 2px 0;
}
.wp-block-details + .wp-block-details { border-top: 0; }
.wp-block-details summary {
	min-height: 52px;
	display: list-item;
	padding: 13px 0;
	font-weight: 700;
	color: var(--pw-ink);
	cursor: pointer;
}
.wp-block-details summary::marker { color: var(--pw-brand); }
.wp-block-details > :not(summary) { margin: 0 0 1em 1.25em; }

/* Columns: a gap that doesn't depend on WordPress's generated layout styles. */
.wp-block-columns { gap: 2rem clamp(24px, 4vw, 48px); }

/* Lists. */
.entry-content ul, .entry-content ol { margin-left: 1.4em; }
.entry-content li + li { margin-top: 0.35em; }

/* Images. */
.wp-block-image img { border-radius: 6px; }
.wp-block-image figcaption { color: var(--pw-muted); font-size: 0.9375rem; }

/* ==========================================================================
   7. Block styles registered by the theme
   ========================================================================== */

/* Group › Notice */
.wp-block-group.is-style-pw-notice {
	position: relative;
	padding: 18px 20px 18px 56px;
	border: 1px solid var(--pw-tint-line);
	border-radius: 10px;
	background: var(--pw-tint);
	color: var(--pw-ink);
	margin: 1.5em 0;
}
.wp-block-group.is-style-pw-notice::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 21px;
	width: 22px;
	height: 22px;
	background-color: var(--pw-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 9v5M10 6.3v.1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7.5'/%3E%3Cpath d='M10 9v5M10 6.3v.1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-group.is-style-pw-notice > :first-child { margin-top: 0; }
.wp-block-group.is-style-pw-notice > :last-child { margin-bottom: 0; }

/* List › Contents (an "On this page" box) */
.wp-block-list.is-style-pw-toc,
ul.is-style-pw-toc, ol.is-style-pw-toc {
	margin: 0 0 2em;
	padding: 18px 22px 18px 44px;
	border: 1px solid var(--pw-line);
	border-radius: var(--pw-radius);
	columns: 2 16em;
	column-gap: 2.5em;
	font-size: 1rem;
	line-height: 1.45;
}
.is-style-pw-toc li { break-inside: avoid; margin: 0 0 0.45em; }

/* Paragraph › Eyebrow label */
p.is-style-pw-eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	padding: 4px 14px;
	border: 1px solid #C9CED6;
	border-radius: 999px;
	background: var(--pw-paper);
	color: var(--pw-muted);
	font-size: 0.9375rem;
	font-weight: 700;
}

/* ==========================================================================
   8. Pattern layout (classes used by the theme's block patterns)
   ========================================================================== */

/* Full-width bands work in any Astra content layout. */
.entry-content > .alignfull.pw-band {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.pw-wrap {
	max-width: var(--pw-wrap);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--pw-gutter);
	padding-right: var(--pw-gutter);
}
.pw-band { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); margin-top: 0; margin-bottom: 0; }
.pw-band + .pw-band { margin-top: 0; }
.pw-band--surface { background: var(--pw-surface); border-top: 1px solid var(--pw-line); border-bottom: 1px solid var(--pw-line); }
.pw-band--dark { background: var(--pw-band); color: var(--pw-band-text); }
.pw-band--dark :where(h1, h2, h3, h4) { color: #FFFFFF; }
.pw-band--dark p { color: var(--pw-band-text); font-size: 1.25rem; }
.pw-band--dark a:where(:not(.wp-block-button__link)) { color: var(--pw-band-link); font-weight: 700; }

/* Hero */
.pw-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 96px); }
.pw-hero .wp-block-columns { align-items: center; gap: clamp(32px, 5vw, 56px); }
.entry-content .pw-hero-title,
.pw-hero-title {
	margin: 0 0 0.4em;
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
}
.pw-lead,
.entry-content p.pw-lead { font-size: clamp(1.15rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--pw-text); }
.pw-note { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--pw-muted); }
.pw-note::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: var(--pw-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='12' height='8' rx='1.5'/%3E%3Cpath d='M7 9V6.5a3 3 0 0 1 6 0V9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='9' width='12' height='8' rx='1.5'/%3E%3Cpath d='M7 9V6.5a3 3 0 0 1 6 0V9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero illustration: a page drawn with the editor's tag outlines. */
.pw-figure { position: relative; max-width: 470px; margin: 0 auto; }
.pw-sheet {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: 48px 40px 48px;
	border-radius: 6px;
	background: #FFFFFF;
	color: #16181D;
	box-shadow: 0 1px 2px rgba(22, 24, 29, 0.12), 0 18px 40px rgba(22, 24, 29, 0.12);
}
.pw-block { position: relative; outline: 1.5px solid var(--pw-c, #5B6472); outline-offset: 5px; }
.pw-tag {
	position: absolute;
	top: -26px;
	left: -7px;
	padding: 4px 6px;
	border-radius: 3px;
	background: var(--pw-c, #5B6472);
	color: #FFFFFF;
	font-family: var(--pw-mono);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
}
.pw-order {
	position: absolute;
	top: -18px;
	right: -18px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #16181D;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pw-block--h { --pw-c: #1D44B8; }
.pw-block--p { --pw-c: #5B6472; }
.pw-block--figure { --pw-c: #6A3DB8; }
.pw-block--table { --pw-c: #0B6B78; }
.pw-sheet-title { font-size: 26px; font-weight: 700; line-height: 1.15; }
.pw-lines { display: flex; flex-direction: column; gap: 8px; }
.pw-lines span { display: block; height: 9px; border-radius: 3px; background: #CBD0D8; }
.pw-lines span:last-child { width: 62%; }
.pw-photo { height: 110px; border-radius: 2px; background: #DCE2E9; display: flex; align-items: flex-end; padding: 10px; }
.pw-photo span { font-size: 12.5px; font-weight: 700; color: #3E4654; background: #FFFFFF; border-radius: 4px; padding: 3px 8px; }
.pw-mini-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; border-top: 2px solid #16181D; border-bottom: 2px solid #16181D; }
.pw-mini-table span { padding: 6px 4px; }
.pw-mini-table span:nth-child(-n+3) { font-weight: 700; background: #E8EEF4; border-bottom: 1px solid #16181D; }
.pw-ready {
	position: absolute;
	right: -20px;
	bottom: -28px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #FFFFFF;
	color: #16181D;
	border: 1px solid #E1E4E8;
	box-shadow: 0 10px 28px rgba(22, 24, 29, 0.16);
	line-height: 1.3;
}
.pw-ready strong { display: block; font-size: 15px; }
.pw-ready small { display: block; font-size: 13.5px; color: #3E4654; }
.pw-ready svg { flex: none; }

/* Section intro */
.pw-intro { max-width: 720px; margin-bottom: 2.5rem; }
.pw-intro h2 { margin: 0 0 0.35em; font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.pw-intro p { margin: 0; color: var(--pw-muted); }

/* Cards */
.pw-cards { gap: 24px; }
.pw-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border: 1px solid var(--pw-line);
	border-radius: var(--pw-radius);
	background: var(--pw-paper);
}
.pw-card > * { margin: 0 !important; }
.pw-card h3 { font-size: 1.5rem; }
.pw-card p:last-child { margin-top: auto !important; font-weight: 700; }

/* Tag chip (decorative label) */
.pw-chip {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--pw-tag-h);
	color: #FFFFFF;
	font-family: var(--pw-mono);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
}
.pw-chip--check { background: var(--pw-tag-table); }
.pw-chip--export { background: var(--pw-tag-figure); }
.pw-chip--p { background: var(--pw-tag-p); }
.pw-chip--ink { background: #16181D; }
.pw-chip--artifact { background: transparent; color: var(--pw-muted); border: 1.5px dashed var(--pw-tag-p); }
p.pw-chip-row { margin: 0; }

/* Steps */
ol.pw-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	counter-reset: pw-step;
}
ol.pw-steps > li {
	counter-increment: pw-step;
	max-width: none;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--pw-text);
}
ol.pw-steps > li::before {
	content: counter(pw-step);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--pw-ink);
	color: var(--pw-paper);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
ol.pw-steps > li:last-child::before { background: var(--pw-brand); color: var(--pw-on-brand); }
ol.pw-steps strong { display: block; font-size: 1.25rem; color: var(--pw-ink); }

/* "What every PDF includes" list */
ul.pw-includes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px 32px;
}
ul.pw-includes > li { display: flex; gap: 14px; align-items: flex-start; margin: 0; max-width: none; }
ul.pw-includes .pw-chip { flex: none; min-width: 72px; text-align: center; margin-top: 4px; }

/* Call to action box */
.pw-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	padding: clamp(24px, 4vw, 40px);
	border: 2px solid var(--pw-ink);
	border-radius: 16px;
}
.pw-cta > .wp-block-group:first-child { flex: 1 1 520px; }
.pw-cta h2 { margin: 0 0 0.3em; font-size: 1.875rem; }
.pw-cta p { margin: 0; }

/* ==========================================================================
   9. Footer (Astra footer builder)
   ========================================================================== */
.site-footer,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.site-below-footer-wrap {
	background-color: var(--pw-surface) !important;
	color: var(--pw-muted);
	font-size: 1rem;
}
.site-footer { border-top: 1px solid var(--pw-line); }
.site-below-footer-wrap { border-top: 1px solid var(--pw-line); }
.site-footer a { color: var(--pw-brand); }
.site-footer .widget-title,
.site-footer .footer-widget-area .widget-title {
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pw-muted);
}
.footer-nav-wrap .menu-link,
.site-footer .ast-builder-menu .menu-link { min-height: 44px; display: flex; align-items: center; }
.ast-footer-copyright { color: var(--pw-muted); font-size: 0.9375rem; }

/* ==========================================================================
   10. Forms
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="tel"], input[type="number"], textarea, select {
	min-height: 48px;
	border: 1px solid #8A919C;
	border-radius: 8px;
	background: var(--pw-paper);
	color: var(--pw-ink);
	font-size: 1rem;
}
label { font-weight: 700; color: var(--pw-ink); }

/* ==========================================================================
   11. Responsive, motion and forced colours
   ========================================================================== */
@media (max-width: 781px) {
	.pw-ready { right: 8px; bottom: -36px; }
	.pw-sheet { padding: 40px 26px 40px; gap: 34px; }
	.pw-hero .wp-block-columns { gap: 56px; }
	.wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; }
	.is-style-pw-toc { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.wp-block-button__link, .ast-custom-button, .menu-toggle { border: 2px solid ButtonText !important; }
	.pw-card, .pw-cta, .wp-block-table, .is-style-pw-toc, .is-style-pw-notice { border: 1px solid CanvasText; }
	.pw-chip, .pw-tag { border: 1px solid CanvasText; }
	.pw-note::before, .is-style-pw-notice::before { background-color: CanvasText; }
	:focus-visible { outline: 3px solid Highlight !important; }
}

@media print {
	.site-header, .site-footer, .pw-figure, .wp-block-buttons { display: none !important; }
	.pw-band--dark { background: none; color: #000; }
	.pw-band--dark :where(h2, p, a) { color: #000 !important; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
