/*
 * QEVORK — Single Post (blog) editorial layer.
 * Scoped to the article body, TOC, CTA, the single template's closing block
 * (author, share row, related cards) and spacing, and the reading-progress bar recolor.
 * Never touches body / site nav / footer — those belong to GeneratePress +
 * the Elementor header/footer templates.
 */

/* Self-hosted faces (latin + latin-ext). No third-party font request. */
@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Sans";
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched local fallbacks: the swap to the webfont causes no layout shift. */
@font-face {
	font-family: "Source Serif 4 Fallback";
	src: local("Georgia");
	size-adjust: 99.55%;
	ascent-override: 104.06%;
	descent-override: 33.65%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "IBM Plex Sans Fallback";
	src: local("Arial"), local("ArialMT");
	size-adjust: 101.21%;
	ascent-override: 101.27%;
	descent-override: 27.17%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "IBM Plex Mono Fallback";
	src: local("Courier New"), local("CourierNewPSMT");
	size-adjust: 99.98%;
	ascent-override: 102.52%;
	descent-override: 27.5%;
	line-gap-override: 0%;
}


:root {
	--qv-measure: 68ch;
	--qv-nav-h: var(--q-header-offset, 100px);

	--qv-font-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--qv-font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
	--qv-font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, "SF Mono", "Consolas", monospace;
}

/*
 * Colour tokens live on body: the site is dark-only and Elementor declares the
 * kit globals (--e-global-color-*) on body.elementor-kit-N, not on :root.
 * Hex fallbacks mirror kit 11 for pages rendered without the kit class.
 */
body {
	--qv-surface: var(--e-global-color-4a765d0, #161616);
	--qv-surface-2: var(--e-global-color-b9ba022, #121212);
	--qv-hairline: var(--e-global-color-a79a393, #262626);
	--qv-hairline-2: var(--e-global-color-a79a393, #262626);
	/* #262626 hairlines vanish between table rows on #161616; rows need their own rule. */
	--qv-rule: rgba(255, 255, 255, .14);
	--qv-row-alt: rgba(255, 255, 255, .025);
	--qv-row-hover: rgba(83, 130, 255, .06);
	--qv-ink: var(--e-global-color-text, #E5E5E5);
	--qv-ink-strong: var(--e-global-color-primary, #FFFFFF);
	--qv-muted: var(--e-global-color-85612ad, #888888);
	--qv-accent: var(--e-global-color-d3b1c63, #5382FF);
	--qv-accent-hover: var(--e-global-color-6400738, #85B3DD);
	--qv-btn-bg: var(--e-global-color-accent, #0047FF);
	--qv-btn-bg-hover: var(--e-global-color-f1ed11c, #0042EE);
	--qv-accent-ink: #FFFFFF;
	--qv-note: #4c92c9;
	--qv-note-bg: rgba(76, 146, 201, .12);
	--qv-warn: #d2704b;
	--qv-warn-bg: rgba(210, 112, 75, .12);
	--qv-code-bg: var(--e-global-color-b9ba022, #121212);
	--qv-code-ink: #c6cdd1;
	--qv-code-comment: #6b757b;
	--qv-code-key: var(--e-global-color-d3b1c63, #5382FF);
	--qv-code-str: #7fb2d6;
	--qv-sel: rgba(83, 130, 255, .25);
	--qv-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
}

/* Opt-in only: no light scheme ships on qevork.com today. */
:root[data-theme="light"] body {
	--qv-surface: #ffffff;
	--qv-surface-2: #eef0f1;
	--qv-hairline: #d3d8da;
	--qv-hairline-2: #e4e7e8;
	--qv-rule: #d3d8da;
	--qv-row-alt: rgba(0, 0, 0, .025);
	--qv-row-hover: rgba(0, 71, 255, .05);
	--qv-ink: #1a1f22;
	--qv-ink-strong: #0c0f11;
	--qv-muted: #5c666b;
	--qv-accent: #0047FF;
	--qv-accent-hover: #0036c2;
	--qv-note: #245f92;
	--qv-note-bg: rgba(36, 95, 146, .08);
	--qv-warn: #9c4327;
	--qv-warn-bg: rgba(156, 67, 39, .08);
	--qv-code-bg: #eef0f1;
	--qv-code-ink: #24292b;
	--qv-code-comment: #7b858a;
	--qv-code-key: #0047FF;
	--qv-code-str: #245f92;
	--qv-sel: rgba(0, 71, 255, .15);
	--qv-shadow: 0 1px 2px rgba(12, 15, 17, .06), 0 8px 24px rgba(12, 15, 17, .05);
}

@media not (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: smooth;
	}
}

/* ------------------------------------------------------------------ layout */

.qv-layout {
	display: grid;
	grid-template-columns: 224px minmax(0, 1fr);
	gap: 3.5rem;
	align-items: start;
}

@media (max-width: 960px) {
	.qv-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* --------------------------------------------------------------------- TOC */

/*
 * Sticky lives on the grid item: Elementor wraps .qv-toc in widget divs exactly
 * its own height, which leaves a sticky .qv-toc no room to travel. The rail is
 * capped to the viewport so long outlines scroll inside it instead of running off-screen.
 */
@media (min-width: 961px) {
	.qv-layout > .qv-toc-host {
		position: sticky;
		top: calc(var(--qv-nav-h) + 1.5rem);
		align-self: start;
		max-height: calc(100vh - var(--qv-nav-h) - 3rem);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--qv-hairline) transparent;
	}
}

@media (min-width: 961px) and (not (prefers-reduced-motion: reduce)) {
	.qv-layout > .qv-toc-host {
		scroll-behavior: smooth;
	}
}

.qv-toc {
	font-family: var(--qv-font-mono);
	font-size: .8rem;
	line-height: 1.5;
}

.qv-toc[hidden] {
	display: none;
}

.qv-toc__collapse {
	border: 0;
}

.qv-toc__collapse > summary {
	display: none;
}

.qv-toc__label {
	display: block;
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-muted);
	margin-bottom: .85rem;
}

.qv-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--qv-hairline);
}

.qv-toc__list li {
	margin: 0;
}

.qv-toc__list a {
	display: block;
	padding: .3rem 0 .3rem .9rem;
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--qv-muted);
	text-decoration: none;
	transition: color .15s, border-color .15s;
}

.qv-toc__list a:hover {
	color: var(--qv-ink);
}

.qv-toc__list a.is-active {
	color: var(--qv-ink-strong);
	border-left-color: var(--qv-accent);
	font-weight: 500;
}

.qv-toc__sub a {
	padding-left: 1.8rem;
	font-size: .74rem;
}

@media (max-width: 960px) {
	.qv-toc__collapse {
		border: 1px solid var(--qv-hairline);
		border-radius: 2px;
		background: var(--qv-surface);
	}

	.qv-toc__collapse > summary {
		display: block;
		padding: .7rem 1rem;
		font-size: .68rem;
		font-weight: 500;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--qv-muted);
		cursor: pointer;
	}

	.qv-toc__inner {
		padding: 0 1rem 1rem;
	}
}

/* ----------------------------------------------------------------- article */

.qv-article {
	max-width: var(--qv-measure);
	font-family: var(--qv-font-serif);
	font-size: 1.125rem;
	line-height: 1.72;
	color: var(--qv-ink);
}

.qv-article :is(h2, h3) {
	font-family: var(--qv-font-sans);
	color: var(--qv-ink-strong);
	line-height: 1.25;
	scroll-margin-top: calc(var(--qv-nav-h) + 1.5rem);
	text-wrap: balance;
}

.qv-article h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 2.8rem 0 1rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--qv-hairline);
}

.qv-article h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 2rem 0 .75rem;
}

.qv-article p {
	margin: 0 0 1.3rem;
}

.qv-article a {
	color: var(--qv-accent);
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

.qv-article a:hover {
	color: var(--qv-accent-hover);
}

.qv-article ::selection {
	background: var(--qv-sel);
}

.qv-clause {
	font-family: var(--qv-font-mono);
	font-size: .7em;
	font-weight: 500;
	color: var(--qv-accent);
	margin-right: .55em;
	vertical-align: .12em;
}

/* ------------------------------------------------------------------- lead */

.qv-lead p:first-of-type {
	font-size: 1.22rem;
	line-height: 1.62;
	color: var(--qv-ink-strong);
}

.qv-lead p:first-of-type::first-letter {
	float: left;
	font-family: var(--qv-font-sans);
	font-weight: 600;
	font-size: 3.1rem;
	line-height: .82;
	padding: .28rem .5rem .1rem 0;
	color: var(--qv-accent);
}

/* --------------------------------------------------------------- equation */

.qv-eq {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
	margin: 1.6rem 0;
	padding: .9rem 1.1rem;
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline-2);
	border-left: 2px solid var(--qv-accent);
	border-radius: 2px;
	overflow-x: auto;
}

.qv-eq__body {
	min-width: 0;
}

.qv-eq__num {
	font-family: var(--qv-font-mono);
	font-size: .85rem;
	color: var(--qv-muted);
}

/*
 * Bare \[…\] displays get the same panel as [qv_eq]. The KaTeX mu-plugin pins
 * margin/overflow with !important; blog-single.js shrinks wide ones to fit and
 * only those past the scale floor keep the scrollbar.
 *
 * Touch browsers hide overlay scrollbars, so those survivors also carry a
 * scroll cue: surface-coloured covers scroll with the content (local) and mask
 * an accent glow pinned to the box (scroll), leaving it visible only on the
 * edge that still hides content. No JS, no scroll listener.
 */
.qv-article .katex-display {
	--qv-eq-cue: color-mix(in srgb, var(--qv-accent) 40%, transparent);
	background:
		linear-gradient(to right, var(--qv-surface) 30%, transparent) left center / 2.5rem 100% no-repeat local,
		linear-gradient(to left, var(--qv-surface) 30%, transparent) right center / 2.5rem 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, var(--qv-eq-cue), transparent) left center / .8rem 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, var(--qv-eq-cue), transparent) right center / .8rem 100% no-repeat scroll,
		var(--qv-surface);
	margin: 1.6rem 0 !important;
	padding: .9rem 1.1rem !important;
	border: 1px solid var(--qv-hairline-2);
	border-left: 2px solid var(--qv-accent);
	border-radius: 2px;
	scrollbar-width: thin;
	scrollbar-color: var(--qv-hairline) transparent;
}

.qv-article .qv-eq .katex-display {
	margin: 0 !important;
	padding: 2px 0 !important;
	border: 0;
}

.qv-eq {
	scrollbar-width: thin;
	scrollbar-color: var(--qv-hairline) transparent;
}

/* ----------------------------------------------------------------- figure */

.qv-figure {
	margin: 1.8rem 0;
}

.qv-figure__frame {
	padding: 1.25rem;
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline-2);
	border-radius: 2px;
	background-image:
		linear-gradient(var(--qv-hairline-2) 1px, transparent 1px),
		linear-gradient(90deg, var(--qv-hairline-2) 1px, transparent 1px);
	background-size: 22px 22px;
}

.qv-figure__frame svg,
.qv-figure__frame img {
	display: block;
	width: 100%;
	height: auto;
}

.qv-figure figcaption {
	margin-top: .7rem;
	font-family: var(--qv-font-mono);
	font-size: .8rem;
	color: var(--qv-muted);
}

.qv-figure figcaption b {
	color: var(--qv-ink);
	font-weight: 600;
}

/* ---------------------------------------------------------------- callout */

.qv-callout {
	margin: 1.6rem 0;
	padding: 1rem 1.2rem;
	border: 1px solid var(--qv-hairline-2);
	border-left: 3px solid var(--qv-note);
	border-radius: 2px;
	background: var(--qv-note-bg);
	font-size: 1rem;
	line-height: 1.6;
}

.qv-callout p:last-child {
	margin-bottom: 0;
}

.qv-callout--warn {
	border-left-color: var(--qv-warn);
	background: var(--qv-warn-bg);
}

.qv-callout__tag {
	display: block;
	margin-bottom: .4rem;
	font-family: var(--qv-font-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--qv-note);
}

.qv-callout--warn .qv-callout__tag {
	color: var(--qv-warn);
}

/* ------------------------------------------------------------------ table */

.qv-table-scroll {
	margin: 1.8rem 0;
	overflow-x: auto;
	border: 1px solid var(--qv-rule);
	border-radius: 2px;
}

/* GeneratePress paints table/th/td borders rgba(0,0,0,.1) on every side: reset, then rule rows. */
table.qv-data {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-family: var(--qv-font-mono);
	font-size: .85rem;
	font-variant-numeric: tabular-nums;
}

table.qv-data caption {
	caption-side: top;
	padding: .8rem 1rem;
	text-align: left;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--qv-muted);
	background: var(--qv-surface-2);
	border-bottom: 1px solid var(--qv-rule);
}

table.qv-data th,
table.qv-data td {
	padding: .55rem 1rem;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--qv-rule);
}

table.qv-data thead th {
	color: var(--qv-ink-strong);
	font-weight: 600;
	background: var(--qv-surface);
	border-bottom: 1px solid var(--qv-muted);
}

table.qv-data tbody tr:nth-child(even) td {
	background: var(--qv-row-alt);
}

table.qv-data tbody tr:hover td {
	background: var(--qv-row-hover);
}

table.qv-data tbody tr:last-child td {
	border-bottom: 0;
}

/* Editor-authored tables mix prose and figures: sans for reading, tabular digits kept. */
table.qv-data--text {
	font-family: var(--qv-font-sans);
	font-size: .9rem;
	line-height: 1.5;
}

/* Long PT compounds ("Estruturalmente") set the min-content width: hyphenate and tighten gutters so 4 columns fit the ~595px measure; the scroll wrapper stays as fallback. */
table.qv-data--text th,
table.qv-data--text td {
	padding-inline: .75rem;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

table.qv-data--text td {
	vertical-align: top;
}

table.qv-data--text td:first-child {
	color: var(--qv-ink-strong);
}

table.qv-data tr.out td:first-child::before {
	content: "\203A  ";
	color: var(--qv-accent);
}

table.qv-data tr.out td {
	color: var(--qv-ink-strong);
	font-weight: 500;
}

/* ------------------------------------------------------------------- code */

.qv-article pre {
	margin: 1.7rem 0;
	padding: 1.1rem 1.25rem;
	overflow-x: auto;
	background: var(--qv-code-bg);
	border: 1px solid var(--qv-hairline-2);
	border-radius: 2px;
	font-family: var(--qv-font-mono);
	font-size: .86rem;
	line-height: 1.6;
	color: var(--qv-code-ink);
}

.qv-article :not(pre) > code {
	padding: .1em .35em;
	font-family: var(--qv-font-mono);
	font-size: .88em;
	background: var(--qv-code-bg);
	border: 1px solid var(--qv-hairline-2);
	border-radius: 2px;
}

/* -------------------------------------------------------------------- CTA */

.qv-cta {
	margin: 2.6rem 0;
	padding: 1.6rem 1.75rem;
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline);
	border-radius: 2px;
	box-shadow: var(--qv-shadow);
}

.qv-cta__eyebrow {
	display: block;
	font-family: var(--qv-font-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-accent);
}

.qv-cta__title {
	margin: .55rem 0 .5rem;
	font-family: var(--qv-font-sans);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--qv-ink-strong);
}

.qv-cta p {
	margin: 0 0 1.15rem;
	font-size: 1rem;
	color: var(--qv-muted);
}

.qv-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.qv-btn {
	display: inline-block;
	padding: .6rem 1.15rem;
	font-family: var(--qv-font-sans);
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
	background: var(--qv-btn-bg);
	color: var(--qv-accent-ink);
	border: 1px solid var(--qv-btn-bg);
	transition: background .15s, border-color .15s;
}

.qv-btn:hover {
	background: var(--qv-btn-bg-hover);
	border-color: var(--qv-btn-bg-hover);
	color: var(--qv-accent-ink);
}

.qv-btn--ghost {
	background: transparent;
	color: var(--qv-accent);
}

.qv-btn--ghost:hover {
	background: transparent;
	color: var(--qv-accent-hover);
}

/* ------------------------------------------------------------------ share */

.qv-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 2.4rem 0;
	padding-top: 1.4rem;
	border-top: 1px solid var(--qv-hairline);
	font-family: var(--qv-font-mono);
	font-size: .82rem;
}

.qv-share__label {
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-muted);
}

.qv-share a,
.qv-share__copy {
	color: var(--qv-accent);
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
}

.qv-share a:hover,
.qv-share__copy:hover {
	color: var(--qv-accent-hover);
}

.qv-share__copy.is-done {
	color: var(--qv-note);
}

.qv-share__copy.is-failed {
	color: var(--qv-warn);
}

/* GeneratePress + the Elementor kit paint every <button> as a filled CTA, hover/focus included. */
body .qv-share button.qv-share__copy,
body .qv-share button.qv-share__copy:hover,
body .qv-share button.qv-share__copy:focus,
body .qv-share button.qv-share__copy:active {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: var(--qv-accent);
}

body .qv-share button.qv-share__copy:hover {
	color: var(--qv-accent-hover);
}

body .qv-share button.qv-share__copy.is-done {
	color: var(--qv-note);
}

body .qv-share button.qv-share__copy.is-failed {
	color: var(--qv-warn);
}

/* -------------------------------------------------------------- subscribe */
/* End-of-post newsletter card; mirrors .qv-cta so the closing area reads as one system. */

.qv-subscribe {
	position: relative;
	margin: 2.6rem 0;
	padding: 1.6rem 1.75rem;
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline);
	border-radius: 2px;
	box-shadow: var(--qv-shadow);
}

.qv-subscribe p {
	margin: 0;
}

.qv-subscribe .qv-subscribe__eyebrow {
	font-family: var(--qv-font-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-accent);
}

.qv-subscribe .qv-subscribe__title {
	margin: .55rem 0 .5rem;
	font-family: var(--qv-font-sans);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--qv-ink-strong);
}

.qv-subscribe .qv-subscribe__lead {
	margin-bottom: 1.15rem;
	font-size: 1rem;
	color: var(--qv-muted);
}

.qv-subscribe__form {
	margin: 0;
}

.qv-subscribe__label {
	display: block;
	margin-bottom: .4rem;
	font-family: var(--qv-font-sans);
	font-size: .85rem;
	font-weight: 600;
	color: var(--qv-ink);
}

.qv-subscribe__row {
	display: flex;
	gap: .6rem;
}

body .qv-subscribe input.qv-subscribe__email {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: .6rem .8rem;
	font-family: var(--qv-font-sans);
	font-size: 1rem;
	line-height: 1.4;
	color: var(--qv-ink-strong);
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline-2);
	border-radius: 2px;
	box-shadow: none;
}

body .qv-subscribe input.qv-subscribe__email:focus {
	border-color: var(--qv-accent);
}

/* Same GeneratePress/Elementor <button> override as .qv-share__copy, here restoring the .qv-btn look. */
body .qv-subscribe button.qv-subscribe__submit,
body .qv-subscribe button.qv-subscribe__submit:focus,
body .qv-subscribe button.qv-subscribe__submit:active {
	flex: 0 0 auto;
	margin: 0;
	padding: .6rem 1.15rem;
	font-family: var(--qv-font-sans);
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	border-radius: 2px;
	background: var(--qv-btn-bg);
	color: var(--qv-accent-ink);
	border: 1px solid var(--qv-btn-bg);
	box-shadow: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

body .qv-subscribe button.qv-subscribe__submit:hover {
	background: var(--qv-btn-bg-hover);
	border-color: var(--qv-btn-bg-hover);
	color: var(--qv-accent-ink);
}

body .qv-subscribe button.qv-subscribe__submit[disabled] {
	opacity: .6;
	cursor: progress;
}

.qv-subscribe__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.qv-subscribe .qv-subscribe__status:empty {
	display: none;
}

.qv-subscribe .qv-subscribe__status {
	margin-top: .8rem;
	padding: .55rem .8rem;
	font-size: .92rem;
	border-left: 3px solid currentColor;
}

.qv-subscribe .qv-subscribe__status.is-ok {
	color: var(--qv-note);
	background: var(--qv-note-bg);
}

.qv-subscribe .qv-subscribe__status.is-error {
	color: var(--qv-warn);
	background: var(--qv-warn-bg);
}

.qv-subscribe .qv-subscribe__fine {
	margin-top: .8rem;
	font-size: .8rem;
	color: var(--qv-muted);
}

.qv-subscribe__fine a {
	color: var(--qv-accent);
}

.qv-subscribe__fine a:hover {
	color: var(--qv-accent-hover);
}

@media (max-width: 480px) {
	.qv-subscribe {
		padding: 1.2rem;
	}

	.qv-subscribe__row {
		flex-direction: column;
	}
}

/* --------------------------------------------------------- closing block */
/* Single template, after the article: [qv_author] → [qv_share] → [qv_related]; the container gap spaces them. */

.elementor-location-single .qv-share,
.elementor-location-single .qv-author,
.elementor-location-single .qv-related {
	margin: 0;
}

.qv-author p,
.qv-related p {
	margin: 0;
}

/* ----------------------------------------------------------------- author */

.qv-author {
	display: flex;
	align-items: flex-start;
	gap: 1.1rem;
	margin: 2.4rem 0;
	padding: 1.4rem 1.5rem;
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline);
	border-radius: 2px;
}

.qv-author__mark {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 2px;
}

.qv-author__body {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 0;
}

.qv-author__eyebrow {
	font-family: var(--qv-font-mono);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-muted);
}

.qv-author__name {
	font-family: var(--qv-font-sans);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--qv-ink-strong);
}

.qv-author__bio {
	font-family: var(--qv-font-sans);
	font-size: .92rem;
	line-height: 1.6;
	color: var(--qv-ink);
}

.qv-author__link {
	align-self: flex-start;
	margin-top: .3rem;
	font-family: var(--qv-font-mono);
	font-size: .78rem;
	letter-spacing: .04em;
	color: var(--qv-accent);
	text-decoration: none;
}

.qv-author__link::after {
	content: " →";
}

.qv-author__link:hover {
	color: var(--qv-accent-hover);
}

@media (max-width: 480px) {
	.qv-author {
		flex-direction: column;
		padding: 1.2rem;
	}
}

/* ---------------------------------------------------------------- related */
/* Whole-card hit area via the heading link's ::after; columns follow the block's own width, not the viewport. */

.qv-related {
	container-type: inline-size;
	margin: 2.4rem 0;
	padding-top: 1.4rem;
	border-top: 1px solid var(--qv-hairline);
}

body .qv-related .qv-related__title {
	margin: 0 0 1rem;
	font-family: var(--qv-font-mono);
	font-size: .7rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-muted);
}

.qv-related__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@container (min-width: 40rem) {
	.qv-related__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.qv-related__item {
	display: flex;
	margin: 0;
}

.qv-related__card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .55rem;
	padding: 1.1rem 1.2rem;
	background: var(--qv-surface);
	border: 1px solid var(--qv-hairline);
	border-radius: 2px;
	transition: border-color .15s ease;
}

.qv-related__card:hover,
.qv-related__card:focus-within {
	border-color: var(--qv-accent);
}

.qv-related__kicker {
	font-family: var(--qv-font-mono);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--qv-muted);
}

body .qv-related .qv-related__heading {
	margin: 0;
	font-family: var(--qv-font-sans);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.45;
	letter-spacing: normal;
	text-transform: none;
	color: var(--qv-ink-strong);
}

.qv-related__heading a {
	color: inherit;
	text-decoration: none;
	transition: color .15s ease;
}

.qv-related__heading a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.qv-related__card:hover .qv-related__heading a,
.qv-related__heading a:focus-visible {
	color: var(--qv-accent);
}

.qv-related__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	font-family: var(--qv-font-sans);
	font-size: .88rem;
	line-height: 1.55;
	color: var(--qv-ink);
}

.qv-related__meta {
	margin-top: auto;
	padding-top: .3rem;
	font-family: var(--qv-font-mono);
	font-size: .72rem;
	color: var(--qv-muted);
}

/* The template's 4rem bottom padding (Elementor per-element rule, 0-3-0) doubled the footer's own top space. */
.elementor.elementor-location-single > .e-con:last-child {
	--padding-bottom: 1.5rem;
}

/* ----------------------------------------------- reading-progress recolor */
/* Existing module owns markup + scroll logic; this only sets the fill hue. */

#qevork-reading-progress-bar {
	background: var(--qv-accent);
}

/* ------------------------------------------------------------------ focus */

.qv-article :focus-visible,
.qv-toc :focus-visible,
.qv-cta :focus-visible,
.qv-share :focus-visible,
.qv-subscribe :focus-visible,
.qv-author :focus-visible {
	outline: 2px solid var(--qv-accent);
	outline-offset: 2px;
	border-radius: 1px;
}

/* The card border carries the focus ring; the stretched link's own outline would hug the title only. */
.qv-related__card:has(:focus-visible) {
	outline: 2px solid var(--qv-accent);
	outline-offset: 2px;
}

.qv-related__heading a:focus-visible {
	outline: none;
}
