/*!
Theme Name: PakFunny
Theme URI: https://pakfunny.com/
Description: An elegant, light editorial theme for PakFunny. Serif headlines on warm paper, a restrained terracotta accent and generous whitespace. Standalone: no parent theme, no webfonts, no icon font, no jQuery.
Author: PakFunny
Author URI: https://pakfunny.com/
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pakfunny
Tags: blog, entertainment, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns
*/

/*--------------------------------------------------------------
>>> CONTENTS
----------------------------------------------------------------
1.  Reset
2.  Design tokens
3.  Base typography
4.  Layout
5.  Header & navigation
6.  Breadcrumbs
7.  Archive cards & lead story
8.  Single post & pages
9.  Related posts
10. Sidebar & widgets
11. Pagination
12. Comments & forms
13. Footer
14. Ad slots
15. Utilities, motion & print
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1. Reset
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
	margin: 0;
	padding: 0;
}

ul[class], ol[class] { list-style: none; }

/* Any component rule that sets display (inline-flex, grid...) would otherwise
   beat the UA's [hidden] { display: none } and show hidden elements. */
[hidden] { display: none !important; }

img, picture, video, canvas, svg, iframe, embed, object {
	display: block;
	max-width: 100%;
}
img { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

table { border-collapse: collapse; width: 100%; }

/*--------------------------------------------------------------
2. Design tokens
--------------------------------------------------------------*/
:root {
	/* Warm paper ground, near-black ink, one restrained accent */
	--pf-paper:      #fbf9f6;
	--pf-surface:    #ffffff;
	--pf-surface-2:  #f4f0ea;

	--pf-ink:        #191614;
	--pf-ink-soft:   #55504a;
	--pf-ink-mute:   #8a8177;

	--pf-rule:       #e7e1d8;
	--pf-rule-soft:  #f0ebe3;

	--pf-accent:      #a84b28;
	--pf-accent-deep: #83371b;
	--pf-accent-soft: #f7ece6;
	--pf-on-accent:   #ffffff;

	/* Type: platform serif for editorial voice, platform UI face for chrome */
	--pf-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--pf-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

	--pf-step--2: clamp(.69rem, .67rem + .1vw, .74rem);
	--pf-step--1: clamp(.81rem, .78rem + .13vw, .87rem);
	--pf-step-0:  clamp(1rem, .97rem + .16vw, 1.08rem);
	--pf-step-1:  clamp(1.15rem, 1.08rem + .33vw, 1.35rem);
	--pf-step-2:  clamp(1.35rem, 1.2rem + .7vw, 1.8rem);
	--pf-step-3:  clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
	--pf-step-4:  clamp(2rem, 1.5rem + 2.3vw, 3.5rem);

	--pf-gap:    1.5rem;
	--pf-gap-l:  clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
	--pf-pad:    clamp(1.1rem, .8rem + 1.4vw, 1.75rem);

	/* Elegance comes from whitespace and hairlines, not drop shadows */
	--pf-radius:   4px;
	--pf-radius-s: 3px;
	--pf-lift:     0 1px 2px rgba(25, 22, 20, .04), 0 8px 24px rgba(25, 22, 20, .07);

	--pf-max:      1200px;
	--pf-measure:  68ch;
	--pf-ease:     cubic-bezier(.2, .7, .3, 1);

	color-scheme: light;
}

/* Dark palette: same roles, inverted values. Applied on system-dark unless the
   visitor explicitly chose light, and always when they chose dark. */
@media (prefers-color-scheme: dark) {
	:root:not([data-pf-theme="light"]) {
		--pf-paper:      #14120f;
		--pf-surface:    #1c1916;
		--pf-surface-2:  #262220;

		--pf-ink:        #f4f1ec;
		--pf-ink-soft:   #c3bcb2;
		--pf-ink-mute:   #968d83;

		--pf-rule:       #332d27;
		--pf-rule-soft:  #262220;

		--pf-accent:      #e8845c;
		--pf-accent-deep: #f3a582;
		--pf-accent-soft: #2c1b13;
		--pf-on-accent:   #1d120c;

		--pf-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45);

		color-scheme: dark;
	}
}

:root[data-pf-theme="dark"] {
	--pf-paper:      #14120f;
	--pf-surface:    #1c1916;
	--pf-surface-2:  #262220;

	--pf-ink:        #f4f1ec;
	--pf-ink-soft:   #c3bcb2;
	--pf-ink-mute:   #968d83;

	--pf-rule:       #332d27;
	--pf-rule-soft:  #262220;

	--pf-accent:      #e8845c;
	--pf-accent-deep: #f3a582;
	--pf-accent-soft: #2c1b13;
	--pf-on-accent:   #1d120c;

	--pf-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45);

	color-scheme: dark;
}

/*--------------------------------------------------------------
3. Base typography
--------------------------------------------------------------*/
body {
	background: var(--pf-paper);
	color: var(--pf-ink);
	font-family: var(--pf-sans);
	font-size: var(--pf-step-0);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--pf-serif);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.012em;
	color: var(--pf-ink);
	text-wrap: balance;
}

h1 { font-size: var(--pf-step-3); }
h2 { font-size: var(--pf-step-2); }
h3 { font-size: var(--pf-step-1); }

p { text-wrap: pretty; }

a { color: var(--pf-accent); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--pf-accent-deep); }

:focus-visible {
	outline: 2px solid var(--pf-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--pf-accent-soft); color: var(--pf-accent-deep); }

hr {
	border: 0;
	height: 1px;
	background: var(--pf-rule);
	margin-block: var(--pf-gap-l);
}

/* The eyebrow: small-caps category label above a headline */
.entry-eyebrow {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .13em;
	color: var(--pf-accent);
	margin: 0;
}
.entry-eyebrow a { color: inherit; text-decoration: none; }
.entry-eyebrow a:hover { text-decoration: underline; }

.pf-section-title {
	font-size: var(--pf-step--1);
	font-family: var(--pf-sans);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .13em;
	color: var(--pf-ink-mute);
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--pf-rule);
	margin-bottom: var(--pf-gap);
}

/*--------------------------------------------------------------
4. Layout
--------------------------------------------------------------*/
.container {
	width: 100%;
	max-width: var(--pf-max);
	margin-inline: auto;
	padding-inline: clamp(1rem, .5rem + 2vw, 2rem);
}

.site-content { padding-block: var(--pf-gap-l); }

.pf-columns { display: block; }

@media (min-width: 1000px) {
	body:not(.pf-no-sidebar) .pf-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: var(--pf-gap-l);
		align-items: start;
	}
	body:not(.pf-no-sidebar) .pf-columns > #secondary {
		position: sticky;
		top: 6rem;
	}
}

.site-main { min-width: 0; }

/*--------------------------------------------------------------
5. Header & navigation
--------------------------------------------------------------*/
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--pf-paper) 85%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--pf-ease), background .25s var(--pf-ease);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.site-header { background: var(--pf-paper); }
}
.site-header.is-stuck { border-bottom-color: var(--pf-rule); }

/* Tier 1: branding and tools */
.site-header-top > .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	min-height: 68px;
	position: relative;
}

/* Tier 2: the category bar, full width and scrollable */
.site-header-nav {
	border-top: 1px solid var(--pf-rule-soft);
}
.site-header-nav > .container {
	position: relative;
	padding-inline: 0;
}

/* Branding shares the row with the tools and must be able to shrink. If it
   cannot, the row grows past the viewport, and because every .container is
   width:100% of the stretched body, the whole page overflows sideways. */
.site-branding {
	min-width: 0;
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}
.site-branding .custom-logo { max-height: 46px; width: auto; }

.site-title {
	font-family: var(--pf-serif);
	font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem);
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 0;
}
.site-title a { color: var(--pf-ink); text-decoration: none; }
.site-title a:hover { color: var(--pf-accent); }

.site-description {
	font-size: var(--pf-step--2);
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--pf-ink-mute);
	margin-top: .15rem;
}

/* On a phone the tagline cannot share the row with the toggles, so it steps
   aside rather than forcing the header - and therefore the page - wider than
   the screen. */
@media (max-width: 560px) {
	.site-description { display: none; }
}

.pf-header-tools { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }

/* Primary nav */
.main-navigation {
	/* 21 top-level categories, three of them with dropdowns. A scrolling bar
	   would clip those dropdowns (overflow-x also clips the y axis), so the
	   bar wraps onto as many rows as it needs instead. */
	padding-inline: clamp(1rem, .5rem + 2vw, 2rem);
	padding-block: .3rem;
}

.main-navigation > ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .05rem .1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* A menu item is its link plus, where it has children, a disclosure button */
.main-navigation li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	flex-shrink: 0;
	position: relative;
}

.main-navigation a {
	display: block;
	padding: .5rem .8rem;
	font-size: var(--pf-step--1);
	font-weight: 500;
	color: var(--pf-ink-soft);
	text-decoration: none;
	border-radius: var(--pf-radius);
	white-space: nowrap;
	transition: color .18s var(--pf-ease), background .18s var(--pf-ease);
}
.main-navigation a:hover { color: var(--pf-accent); background: var(--pf-accent-soft); }

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--pf-ink);
	font-weight: 700;
}

/* Submenus */
.main-navigation ul ul {
	/* Explicit anchor. Menu items are flex containers with align-items:center,
	   and without top/left an absolute child takes its flex "static position",
	   which centres it vertically on the item - so a tall submenu opened
	   upward and off the top of the screen. */
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 2px;
	display: none;
	flex-direction: column;
	align-items: stretch;
	min-width: 210px;
	padding: .3rem;
	background: var(--pf-surface);
	border: 1px solid var(--pf-rule);
	border-radius: var(--pf-radius);
	box-shadow: var(--pf-lift);
	z-index: 20;
}
.main-navigation li { position: relative; }

/* Third-level menus fly out to the side rather than down. */
.main-navigation ul ul ul {
	top: -.3rem;
	left: 100%;
	margin-top: 0;
	margin-left: 2px;
}

/* An invisible strip over the 2px gap, so moving the pointer from the item
   down into its menu does not drop :hover and close it. */
.main-navigation ul ul::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -6px;
	height: 6px;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { padding: .5rem .7rem; }

/* Icon buttons */
.menu-toggle,
.pf-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--pf-radius);
	color: var(--pf-ink-soft);
	cursor: pointer;
	transition: color .18s var(--pf-ease), background .18s var(--pf-ease);
}
.menu-toggle:hover,
.pf-theme-toggle:hover { color: var(--pf-accent); background: var(--pf-accent-soft); }
.menu-toggle svg, .pf-theme-toggle svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }

.pf-theme-toggle .pf-icon-moon { display: none; }
:root[data-pf-theme="dark"] .pf-theme-toggle .pf-icon-moon { display: block; }
:root[data-pf-theme="dark"] .pf-theme-toggle .pf-icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-pf-theme="light"]) .pf-theme-toggle .pf-icon-moon { display: block; }
	:root:not([data-pf-theme="light"]) .pf-theme-toggle .pf-icon-sun { display: none; }
}

.dropdown-toggle {
	background: none;
	border: 0;
	padding: .3rem;
	color: inherit;
	cursor: pointer;
	line-height: 0;
	border-radius: var(--pf-radius-s);
}
.dropdown-toggle svg { width: 15px; height: 15px; transition: transform .2s var(--pf-ease); }
.dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mobile nav: the category tier collapses behind the menu button */
@media (max-width: 999px) {
	.menu-toggle { display: inline-flex; }

	.site-header-nav {
		display: none;
		border-top: 1px solid var(--pf-rule);
		max-height: min(70vh, 520px);
		overflow-y: auto;
		background: var(--pf-surface);
	}
	.site-header.pf-nav-open .site-header-nav { display: block; }

	.main-navigation { padding: .5rem; }

	.main-navigation > ul {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
	}

	.main-navigation > ul > li { width: 100%; }

	.main-navigation a {
		flex: 1;
		padding: .75rem .85rem;
		font-size: var(--pf-step-0);
		white-space: normal;
	}

	.main-navigation ul ul {
		position: static;
		display: none;
		width: 100%;
		flex-direction: column;
		box-shadow: none;
		border: 0;
		border-left: 1px solid var(--pf-rule);
		border-radius: 0;
		margin-left: .85rem;
		padding-left: .2rem;
		min-width: 0;
	}
	.main-navigation li.pf-sub-open > ul { display: flex; }

	.dropdown-toggle { width: 40px; height: 40px; display: grid; place-items: center; }
}

/*--------------------------------------------------------------
6. Breadcrumbs
--------------------------------------------------------------*/
.pf-breadcrumbs {
	font-size: var(--pf-step--1);
	color: var(--pf-ink-mute);
	margin-bottom: var(--pf-gap);
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	align-items: center;
}
.pf-breadcrumbs a { color: var(--pf-ink-mute); text-decoration: none; }
.pf-breadcrumbs a:hover { color: var(--pf-accent); text-decoration: underline; }
.pf-breadcrumbs .pf-sep { color: var(--pf-rule); }
.pf-breadcrumbs [aria-current="page"] { color: var(--pf-ink-soft); }

/*--------------------------------------------------------------
7. Archive cards & lead story
--------------------------------------------------------------*/
.page-header { margin-bottom: var(--pf-gap-l); }
.page-title {
	font-size: var(--pf-step-3);
	margin: 0;
}
.archive-description {
	color: var(--pf-ink-soft);
	margin-top: .5rem;
	max-width: var(--pf-measure);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: var(--pf-gap-l) var(--pf-gap);
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: .85rem;
	min-width: 0;
}

.post-card .entry-body {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	min-width: 0;
}

.post-card .entry-media {
	overflow: hidden;
	border-radius: var(--pf-radius);
	background: var(--pf-surface-2);
}
/* 16:9 frame. New featured images are 1200x630 title cards with text in
   them; a 3:2 (or 16:10) frame cropped their sides and cut the lettering.
   At 16:9 they lose ~3% a side, inside their text margins, while the old
   3:2 photos lose only a thin strip top and bottom. */
.post-card .entry-media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s var(--pf-ease), filter .5s var(--pf-ease);
}
.post-card:hover .entry-media img { transform: scale(1.035); }

.post-card .entry-title {
	font-size: var(--pf-step-1);
	margin: 0;
	line-height: 1.25;
}
.post-card .entry-title a {
	color: var(--pf-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--pf-accent), var(--pf-accent));
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .3s var(--pf-ease), color .2s var(--pf-ease);
}
.post-card:hover .entry-title a { color: var(--pf-accent); background-size: 100% 1px; }

.post-card .entry-excerpt {
	color: var(--pf-ink-soft);
	font-size: var(--pf-step--1);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	font-size: var(--pf-step--2);
	color: var(--pf-ink-mute);
	font-variant-numeric: tabular-nums;
}
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--pf-accent); }
.entry-meta > * + *::before {
	content: "\00b7";
	margin-right: .5rem;
	color: var(--pf-rule);
}

/* Lead story: the first post on page 1 of the blog index spans the grid */
.post-grid .post-card.is-lead {
	grid-column: 1 / -1;
	padding-bottom: var(--pf-gap-l);
	border-bottom: 1px solid var(--pf-rule);
}
@media (min-width: 760px) {
	.post-grid .post-card.is-lead {
		display: grid;
		grid-template-columns: 1.15fr 1fr;
		gap: var(--pf-gap);
		align-items: center;
	}
	/* A fixed 16:9 frame (see .post-card above). Stretching to the image's
	   own height let portrait photos run to ~750px tall. */
	.post-grid .post-card.is-lead .entry-media img {
		aspect-ratio: 16 / 9;
		height: auto;
		object-fit: cover;
		object-position: center 30%;
	}
	.post-grid .post-card.is-lead .entry-body { gap: .7rem; }
	.post-grid .post-card.is-lead .entry-title { font-size: var(--pf-step-2); text-wrap: pretty; }
	.post-grid .post-card.is-lead .entry-excerpt {
		font-size: var(--pf-step-0);
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}
}

/* Card with no image: same 16:9 frame, tinted, so rows stay aligned */
.entry-media--placeholder a {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background:
		radial-gradient(circle at 30% 25%, var(--pf-accent-soft), transparent 60%),
		var(--pf-surface-2);
	color: var(--pf-accent);
	text-decoration: none;
}
.entry-media--placeholder svg { width: 52px; height: 52px; opacity: .8; transition: transform .3s var(--pf-ease); }
.post-card:hover .entry-media--placeholder svg { transform: scale(1.08); }
.pf-placeholder-mark {
	font-family: var(--pf-serif);
	font-size: 3.2rem;
	font-weight: 600;
	line-height: 1;
	opacity: .55;
}

/* Front page -------------------------------------------------------------- */
.pf-home-block + .pf-home-block { margin-top: calc(var(--pf-gap-l) * 1.25); }

.pf-home-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	padding-bottom: .8rem;
	margin-bottom: var(--pf-gap);
	border-bottom: 1px solid var(--pf-ink);
}

.pf-home-title {
	font-size: var(--pf-step-2);
	margin: 0;
}

.pf-home-more {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--1);
	font-weight: 600;
	color: var(--pf-accent);
	text-decoration: none;
	white-space: nowrap;
}
.pf-home-more:hover { text-decoration: underline; }

.pf-home-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pf-home-chips a {
	display: inline-block;
	padding: .25rem .7rem;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	font-weight: 600;
	color: var(--pf-ink-soft);
	background: var(--pf-surface-2);
	border-radius: 999px;
	text-decoration: none;
	transition: background .18s var(--pf-ease), color .18s var(--pf-ease);
}
.pf-home-chips a:hover { background: var(--pf-accent-soft); color: var(--pf-accent-deep); }

/* Four across on the full-width front page; the lead still spans the row. */
.pf-home-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* Most popular: numbered list in two or three columns */
.pf-rank-list {
	counter-reset: pf-rank;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: 0 var(--pf-gap-l);
	list-style: none;
	margin: 0;
	padding: 0;
}
.pf-rank-item {
	counter-increment: pf-rank;
	border-bottom: 1px solid var(--pf-rule);
}
.pf-rank-link {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: .95rem;
	color: var(--pf-ink);
	text-decoration: none;
}
.pf-rank-link::before {
	content: counter(pf-rank);
	flex: 0 0 2.2rem;
	font-family: var(--pf-serif);
	font-size: 2.1rem;
	font-weight: 600;
	line-height: 1;
	color: var(--pf-accent);
	opacity: .85;
	font-variant-numeric: lining-nums;
}
.pf-rank-thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--pf-radius);
	background: var(--pf-surface-2);
}
.pf-rank-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.pf-rank-title {
	font-family: var(--pf-serif);
	font-size: var(--pf-step-0);
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pf-rank-views {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	color: var(--pf-ink-mute);
	font-variant-numeric: tabular-nums;
}
.pf-rank-link:hover .pf-rank-title { color: var(--pf-accent); }

/*--------------------------------------------------------------
8. Single post & pages
--------------------------------------------------------------*/
.entry-header--single { margin-bottom: var(--pf-gap-l); }

/* Post and page titles use the full column: no narrow max-width, and normal
   wrapping instead of the global text-wrap: balance, which deliberately
   split headlines at their halfway point. `pretty` still avoids leaving a
   single orphaned word on the last line. */
.entry-header--single .entry-title {
	font-size: var(--pf-step-4);
	margin: .4rem 0 .8rem;
	max-width: none;
	text-wrap: pretty;
}

.entry-header--single .entry-meta { font-size: var(--pf-step--1); }

.entry-media--single {
	margin-bottom: var(--pf-gap-l);
	border-radius: var(--pf-radius);
	overflow: hidden;
	background: var(--pf-surface-2);
	text-align: center;
}
/* Most originals here are around 700px wide. Stretching one to fill a 780px
   column upscales it and the hero then swallows the whole first screen, so it
   is shown at its natural size, centred, and capped in height. */
.entry-media--single img {
	width: auto;
	max-width: 100%;
	max-height: 560px;
	margin-inline: auto;
}

/* Article body: serif, generous leading, capped measure */
.entry-content {
	font-family: var(--pf-serif);
	font-size: clamp(1.05rem, 1rem + .28vw, 1.2rem);
	line-height: 1.78;
	color: var(--pf-ink);
	max-width: var(--pf-measure);
}
.pf-no-sidebar .entry-content { margin-inline: auto; }

.entry-content > * + * { margin-top: 1.4em; }

.entry-content h2 {
	font-size: var(--pf-step-2);
	margin-top: 2em;
	padding-top: .3em;
}
.entry-content h3 { font-size: var(--pf-step-1); margin-top: 1.7em; }

.entry-content a { color: var(--pf-accent); text-decoration: underline; }
.entry-content a:hover { color: var(--pf-accent-deep); }

.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--pf-ink-mute); }

.entry-content img,
.entry-content figure { border-radius: var(--pf-radius); }
.entry-content figure { margin: 0; }
.entry-content figcaption {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--1);
	color: var(--pf-ink-mute);
	margin-top: .6rem;
	text-align: center;
}

.entry-content blockquote {
	border-left: 2px solid var(--pf-accent);
	padding: .2rem 0 .2rem 1.4rem;
	margin-inline: 0;
	font-style: italic;
	color: var(--pf-ink-soft);
}
.entry-content blockquote p + p { margin-top: .8em; }

.entry-content pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--pf-surface-2);
	border: 1px solid var(--pf-rule);
	border-radius: var(--pf-radius);
	padding: 1rem 1.1rem;
	overflow-x: auto;
	font-size: .85em;
	line-height: 1.6;
}
.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	background: var(--pf-surface-2);
	border-radius: 3px;
	padding: .12em .38em;
	font-size: .86em;
}
.entry-content pre code { background: none; padding: 0; }

/* Urdu text: right-to-left, a Nastaliq face where the device has one, and the
   tall line-height Nastaliq needs so stacked letters do not collide. No
   webfont is loaded: Android, iOS and macOS ship Noto Nastaliq Urdu, and
   Windows falls back to Urdu Typesetting. */
.entry-content [lang="ur"] {
	direction: rtl;
	text-align: right;
	font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", serif;
	font-size: 1.18em;
	line-height: 2.25;
	font-style: normal;
}

/* A sendable joke / couplet: Urdu, then Roman Urdu, then Copy + WhatsApp */
.entry-content .pf-joke {
	position: relative;
	margin-block: 1.5em;
	padding: 1.1rem 1.25rem .9rem;
	background: var(--pf-surface);
	border: 1px solid var(--pf-rule);
	border-radius: var(--pf-radius);
}
.entry-content .pf-joke > * + * { margin-top: .5em; }
.entry-content .pf-joke .pf-roman {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--1);
	line-height: 1.65;
	color: var(--pf-ink-soft);
	padding-top: .6em;
	border-top: 1px dashed var(--pf-rule);
}
/* Number badge sitting exactly on the card's top border. It used to inherit
   the article's 1.7 line-height, so a fixed negative offset left the text
   floating above the line; now the box is text-tight and centred on the
   border geometrically. A bordered pill reads correctly over both the white
   card and the paper background it straddles. */
.entry-content .pf-joke-num {
	position: absolute;
	top: 0;
	left: 1.1rem;
	transform: translateY(-50%);
	margin: 0;
	padding: .3rem .6rem;
	line-height: 1;
	background: var(--pf-accent-soft);
	border: 1px solid var(--pf-rule);
	border-radius: 999px;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--pf-accent-deep);
	font-variant-numeric: tabular-nums;
}
.pf-joke-actions {
	display: flex;
	gap: .4rem;
	justify-content: flex-end;
	margin-top: .7rem !important;
}
/* Scoped under .entry-content: the article's own link rule (serif, accent
   colour, underline) otherwise out-ranks .pf-share-btn on the <a> button. */
.entry-content .pf-joke-actions .pf-share-btn {
	min-height: 32px;
	padding: .25rem .75rem;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	color: var(--pf-ink-soft);
	text-decoration: none;
}
.entry-content .pf-joke-actions .pf-share-btn:hover,
.entry-content .pf-joke-actions .pf-share-btn:focus-visible { color: #fff; }
.pf-joke-actions .pf-share-btn svg { width: 15px; height: 15px; }

/* Static image gallery (replaces the Photo Gallery plugin's shortcode) */
.entry-content .pf-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
	gap: .9rem;
}
.entry-content .pf-gallery-item { margin: 0; }
.entry-content .pf-gallery-item a { display: block; overflow: hidden; border-radius: var(--pf-radius); }
.entry-content .pf-gallery-item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform .4s var(--pf-ease);
}
.entry-content .pf-gallery-item a:hover img { transform: scale(1.04); }
.entry-content .pf-gallery-item figcaption { margin-top: .4rem; font-size: var(--pf-step--2); }

/* Video embeds keep their ratio without a plugin */
.entry-content iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--pf-radius);
}

/* Tables scroll rather than blow out the measure */
.entry-content table {
	display: block;
	overflow-x: auto;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--1);
}
.entry-content th, .entry-content td {
	border-bottom: 1px solid var(--pf-rule);
	padding: .6rem .7rem;
	text-align: left;
}
.entry-content th { font-weight: 700; color: var(--pf-ink); }

.entry-footer {
	max-width: var(--pf-measure);
	margin-top: var(--pf-gap-l);
	padding-top: var(--pf-gap);
	border-top: 1px solid var(--pf-rule);
}
.pf-no-sidebar .entry-footer { margin-inline: auto; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.entry-tags a {
	display: inline-block;
	padding: .3rem .7rem;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	letter-spacing: .04em;
	color: var(--pf-ink-soft);
	background: var(--pf-surface-2);
	border-radius: 999px;
	text-decoration: none;
	transition: background .18s var(--pf-ease), color .18s var(--pf-ease);
}
.entry-tags a:hover { background: var(--pf-accent-soft); color: var(--pf-accent-deep); }

/* Prev / next */
.post-navigation { margin-top: var(--pf-gap-l); }
.post-navigation .nav-links {
	display: grid;
	gap: var(--pf-gap);
	border-top: 1px solid var(--pf-rule);
	padding-top: var(--pf-gap);
}
@media (min-width: 640px) {
	.post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
	.post-navigation .nav-next { text-align: right; }
}
.post-navigation a { text-decoration: none; color: var(--pf-ink); }
.post-navigation .nav-subtitle {
	display: block;
	font-size: var(--pf-step--2);
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--pf-ink-mute);
	margin-bottom: .3rem;
}
.post-navigation .nav-title {
	font-family: var(--pf-serif);
	font-size: var(--pf-step-1);
	line-height: 1.3;
}
.post-navigation a:hover .nav-title { color: var(--pf-accent); }

/* Page & 404 */
/* Scoped to the page header: the front page is a page too, and a bare
   .page .entry-title blew every homepage card title up to headline size. */
.page .entry-header--single .entry-title { font-size: var(--pf-step-4); margin-bottom: var(--pf-gap); }

.error-404,
.no-results {
	text-align: center;
	padding-block: var(--pf-gap-l);
}
.error-404 .page-title,
.no-results .page-title { font-size: var(--pf-step-4); }
.error-404 p,
.no-results p { color: var(--pf-ink-soft); max-width: 46ch; margin: 1rem auto var(--pf-gap); }
.error-404 .search-form,
.no-results .search-form { max-width: 420px; margin-inline: auto; }

/* Multi-page posts */
.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin-top: var(--pf-gap-l);
	padding-top: var(--pf-gap);
	border-top: 1px solid var(--pf-rule);
	font-family: var(--pf-sans);
	font-size: var(--pf-step--1);
	color: var(--pf-ink-mute);
}
.page-links a,
.page-links > .post-page-numbers {
	display: grid;
	place-items: center;
	min-width: 36px;
	height: 36px;
	padding-inline: .5rem;
	border-radius: var(--pf-radius);
	text-decoration: none;
	color: var(--pf-ink-soft);
}
.page-links a:hover { background: var(--pf-accent-soft); color: var(--pf-accent-deep); }
.page-links > .post-page-numbers.current {
	background: var(--pf-ink);
	color: var(--pf-paper);
	font-weight: 600;
}

.edit-link a {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	text-transform: uppercase;
	letter-spacing: .1em;
	text-decoration: none;
	color: var(--pf-ink-mute);
}
.edit-link a:hover { color: var(--pf-accent); }

/* Share buttons ----------------------------------------------------------- */
.pf-share {
	--pf-share-brand: var(--pf-accent);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-top: var(--pf-gap-l);
	padding-block: 1.1rem;
	border-block: 1px solid var(--pf-rule);
	/* Wider than the 68ch text measure: a row of buttons is not prose, and at
	   68ch the last button wrapped onto a line of its own. */
	max-width: min(100%, 46rem);
	font-family: var(--pf-sans);
}
.pf-no-sidebar .pf-share { margin-inline: auto; }

.pf-share-label {
	font-size: var(--pf-step--2);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .13em;
	color: var(--pf-ink-mute);
	margin-right: .35rem;
}

.pf-share-btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: 40px;
	padding: .45rem .9rem;
	font-size: var(--pf-step--1);
	font-weight: 600;
	letter-spacing: 0;
	color: var(--pf-ink-soft);
	background: var(--pf-surface);
	border: 1px solid var(--pf-rule);
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: color .18s var(--pf-ease), background .18s var(--pf-ease), border-color .18s var(--pf-ease);
}
.pf-share-btn svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--pf-share-brand); transition: color .18s var(--pf-ease); }
.pf-share-btn:hover,
.pf-share-btn:focus-visible {
	color: #fff;
	background: var(--pf-share-brand);
	border-color: var(--pf-share-brand);
}
.pf-share-btn:hover svg,
.pf-share-btn:focus-visible svg { color: #fff; }

.pf-share-whatsapp { --pf-share-brand: #1fa855; }
.pf-share-facebook { --pf-share-brand: #1877f2; }
.pf-share-x        { --pf-share-brand: #14171a; }
.pf-share-telegram { --pf-share-brand: #229ed9; }
.pf-share-copy,
.pf-share-native   { --pf-share-brand: var(--pf-ink-soft); }

:root[data-pf-theme="dark"] .pf-share-x { --pf-share-brand: #e7e9ea; }
:root[data-pf-theme="dark"] .pf-share-x:hover { color: #14171a; }
@media (prefers-color-scheme: dark) {
	:root:not([data-pf-theme="light"]) .pf-share-x { --pf-share-brand: #e7e9ea; }
	:root:not([data-pf-theme="light"]) .pf-share-x:hover { color: #14171a; }
}

/* Copy link: swap the link glyph for a tick once copied */
.pf-share-copy .pf-icon-check { display: none; }
.pf-share-copy.is-copied .pf-icon-link { display: none; }
.pf-share-copy.is-copied .pf-icon-check { display: block; }
.pf-share-copy.is-copied { color: #1fa855; border-color: #1fa855; }

/* "More" opens the device's own share sheet; the icon says enough, and
   dropping its label keeps the full row on one line. */
.pf-share-native { width: 40px; padding: 0; justify-content: center; }
.pf-share-native .pf-share-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.pf-share-status:empty { display: none; }
.pf-share-status { font-size: var(--pf-step--2); color: var(--pf-ink-mute); }

/* Compact variant under the headline: round icon buttons, no labels */
.pf-share--compact {
	margin-top: 1rem;
	padding: 0;
	border: 0;
	gap: .4rem;
}
.pf-share--compact .pf-share-btn {
	width: 38px;
	min-height: 38px;
	height: 38px;
	padding: 0;
	justify-content: center;
}
.pf-share--compact .pf-share-text,
.pf-share--compact .pf-share-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* On phones the full row shows icons only, except WhatsApp, the one most
   people here will tap. */
@media (max-width: 520px) {
	.pf-share:not(.pf-share--compact) .pf-share-btn:not(.pf-share-whatsapp) { width: 40px; padding: 0; justify-content: center; }
	.pf-share:not(.pf-share--compact) .pf-share-btn:not(.pf-share-whatsapp) .pf-share-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.pf-share-label { width: 100%; }
}

/* Follow-on-Facebook call to action */
.pf-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem 1.1rem;
	max-width: min(100%, 46rem);
	margin-top: var(--pf-gap);
	padding: 1.1rem 1.25rem;
	background: var(--pf-surface);
	border: 1px solid var(--pf-rule);
	border-left: 3px solid #1877f2;
	border-radius: var(--pf-radius);
	font-family: var(--pf-sans);
}
.pf-no-sidebar .pf-follow { margin-inline: auto; }
.pf-follow-icon { color: #1877f2; line-height: 0; }
.pf-follow-icon svg { width: 30px; height: 30px; }
.pf-follow-text { flex: 1 1 220px; margin: 0; font-size: var(--pf-step--1); color: var(--pf-ink-soft); line-height: 1.5; }
.pf-follow-text strong { color: var(--pf-ink); margin-right: .25rem; }
/* Scoped under .pf-follow: the generic .pf-btn rule comes later in this file at
   equal specificity and would otherwise repaint this terracotta. */
.pf-follow .pf-follow-btn { background: #1877f2; color: #fff; white-space: nowrap; }
.pf-follow .pf-follow-btn:hover,
.pf-follow .pf-follow-btn:focus-visible { background: #0f62cf; color: #fff; }

/* Header: Facebook link beside the theme toggle */
.pf-header-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--pf-radius);
	color: var(--pf-ink-soft);
	transition: color .18s var(--pf-ease), background .18s var(--pf-ease);
}
.pf-header-social svg { width: 20px; height: 20px; }
.pf-header-social:hover { color: #1877f2; background: var(--pf-accent-soft); }

/*--------------------------------------------------------------
9. Related posts
--------------------------------------------------------------*/
.pf-related { margin-top: var(--pf-gap-l); }

.pf-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: var(--pf-gap);
}

.pf-related-card {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	text-decoration: none;
	min-width: 0;
}
.pf-related-media {
	display: block;
	overflow: hidden;
	border-radius: var(--pf-radius);
	background: var(--pf-surface-2);
}
.pf-related-media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform .5s var(--pf-ease);
}
.pf-related-card:hover .pf-related-media img { transform: scale(1.04); }
.pf-related-title {
	font-family: var(--pf-serif);
	font-size: var(--pf-step-0);
	font-weight: 600;
	line-height: 1.3;
	color: var(--pf-ink);
}
.pf-related-card:hover .pf-related-title { color: var(--pf-accent); }

/*--------------------------------------------------------------
10. Sidebar & widgets
--------------------------------------------------------------*/
#secondary .widget + .widget { margin-top: var(--pf-gap-l); }

.widget-title {
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .13em;
	color: var(--pf-ink-mute);
	margin: 0 0 .9rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--pf-rule);
}

#secondary .widget ul { list-style: none; margin: 0; padding: 0; }
#secondary .widget li + li {
	margin-top: .55rem;
	padding-top: .55rem;
	border-top: 1px solid var(--pf-rule-soft);
}
#secondary .widget a {
	color: var(--pf-ink-soft);
	text-decoration: none;
	font-size: var(--pf-step--1);
	display: block;
}
#secondary .widget a:hover { color: var(--pf-accent); }

/*--------------------------------------------------------------
11. Pagination
--------------------------------------------------------------*/
.pagination {
	margin-top: var(--pf-gap-l);
	padding-top: var(--pf-gap);
	border-top: 1px solid var(--pf-rule);
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	justify-content: center;
}
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: .7rem;
	border-radius: var(--pf-radius);
	color: var(--pf-ink-soft);
	text-decoration: none;
	font-size: var(--pf-step--1);
	font-variant-numeric: tabular-nums;
	transition: background .18s var(--pf-ease), color .18s var(--pf-ease);
}
.pagination a.page-numbers:hover { background: var(--pf-accent-soft); color: var(--pf-accent-deep); }
.pagination .page-numbers.current {
	background: var(--pf-ink);
	color: var(--pf-paper);
	font-weight: 600;
}
.pagination .page-numbers.dots { min-width: 0; padding-inline: .3rem; }

/*--------------------------------------------------------------
12. Comments & forms
--------------------------------------------------------------*/
#comments {
	max-width: var(--pf-measure);
	margin-top: var(--pf-gap-l);
	padding-top: var(--pf-gap-l);
	border-top: 1px solid var(--pf-rule);
}
.pf-no-sidebar #comments { margin-inline: auto; }

.comments-title, .comment-reply-title { font-size: var(--pf-step-2); margin-bottom: var(--pf-gap); }

.comment-list { list-style: none; margin: 0 0 var(--pf-gap-l); padding: 0; }
.comment-list ol.children { list-style: none; margin-left: var(--pf-gap); padding: 0; }

.comment-body {
	padding: var(--pf-pad) 0;
	border-bottom: 1px solid var(--pf-rule-soft);
}
.comment-author { display: flex; align-items: center; gap: .6rem; font-size: var(--pf-step--1); }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--pf-ink); }
.comment-metadata { font-size: var(--pf-step--2); color: var(--pf-ink-mute); margin-top: .2rem; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content { margin-top: .7rem; }
.reply { margin-top: .5rem; font-size: var(--pf-step--2); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
	width: 100%;
	padding: .7rem .9rem;
	font-size: 16px; /* prevents iOS zoom-on-focus */
	font-family: var(--pf-sans);
	color: var(--pf-ink);
	background: var(--pf-surface);
	border: 1px solid var(--pf-rule);
	border-radius: var(--pf-radius);
	transition: border-color .18s var(--pf-ease), box-shadow .18s var(--pf-ease);
}
input:focus, select:focus, textarea:focus {
	border-color: var(--pf-accent);
	box-shadow: 0 0 0 3px var(--pf-accent-soft);
	outline: none;
}
textarea { min-height: 140px; resize: vertical; }

.comment-form p { margin-bottom: var(--pf-gap); }
.comment-form label {
	display: block;
	font-size: var(--pf-step--1);
	font-weight: 600;
	margin-bottom: .35rem;
}

button,
input[type="submit"],
.wp-block-button__link,
.pf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	min-height: 44px;
	padding: .6rem 1.4rem;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--1);
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--pf-on-accent);
	background: var(--pf-accent);
	border: 1px solid transparent;
	border-radius: var(--pf-radius);
	cursor: pointer;
	text-decoration: none;
	transition: background .18s var(--pf-ease);
}
button:hover, input[type="submit"]:hover, .pf-btn:hover {
	background: var(--pf-accent-deep);
	color: var(--pf-on-accent);
}

/* Icon buttons opt out of the filled treatment */
.menu-toggle, .pf-theme-toggle, .dropdown-toggle {
	background: transparent;
	color: var(--pf-ink-soft);
	min-height: 0;
	padding: 0;
}

.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-submit { flex-shrink: 0; }

/*--------------------------------------------------------------
13. Footer
--------------------------------------------------------------*/
.site-footer {
	margin-top: var(--pf-gap-l);
	border-top: 1px solid var(--pf-rule);
	background: var(--pf-surface);
	color: var(--pf-ink-soft);
}

.footer-widgets { padding-block: var(--pf-gap-l); }
.footer-widgets .footer-columns {
	display: grid;
	gap: var(--pf-gap-l);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.footer-widgets .widget a { color: var(--pf-ink-soft); text-decoration: none; font-size: var(--pf-step--1); }
.footer-widgets .widget a:hover { color: var(--pf-accent); }
.footer-widgets .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets .widget li + li { margin-top: .4rem; }

.pf-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.4rem;
	align-items: center;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding-block: 1.3rem;
	border-top: 1px solid var(--pf-rule);
	font-size: var(--pf-step--1);
}
.pf-footer-legal a { color: var(--pf-ink-soft); text-decoration: none; }
.pf-footer-legal a:hover { color: var(--pf-accent); text-decoration: underline; }

.site-info {
	padding-block: 1.3rem;
	border-top: 1px solid var(--pf-rule);
	font-size: var(--pf-step--2);
	color: var(--pf-ink-mute);
	text-align: center;
	letter-spacing: .03em;
}

/* Back to top */
.pf-backtotop {
	position: fixed;
	right: max(1.1rem, env(safe-area-inset-right, 0px));
	bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
	z-index: 90;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	display: grid;
	place-items: center;
	background: var(--pf-ink);
	color: var(--pf-paper);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--pf-lift);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s var(--pf-ease), transform .25s var(--pf-ease), visibility .25s;
}
.pf-backtotop:hover { background: var(--pf-accent); color: var(--pf-on-accent); }
.pf-backtotop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pf-backtotop svg { width: 19px; height: 19px; }

/*--------------------------------------------------------------
14. Ad slots - reserved space so ads cannot shift the layout (CLS)
--------------------------------------------------------------*/
.pf-ad {
	margin-block: var(--pf-gap-l);
	text-align: center;
	min-height: 100px;
	contain: layout style;
}
.pf-ad::before {
	content: "Advertisement";
	display: block;
	font-family: var(--pf-sans);
	font-size: var(--pf-step--2);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--pf-ink-mute);
	margin-bottom: .5rem;
}
.pf-ad ins { margin-inline: auto; }
@media (min-width: 768px) { .pf-ad { min-height: 280px; } }

/*--------------------------------------------------------------
15. Utilities, motion & print
--------------------------------------------------------------*/
.screen-reader-text,
.pf-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	clip-path: none;
	padding: .85rem 1.3rem;
	background: var(--pf-surface);
	color: var(--pf-accent);
	border-radius: var(--pf-radius);
	box-shadow: var(--pf-lift);
	font-weight: 700;
	text-decoration: none;
}

.sticky .entry-title::after {
	content: "\2605";
	margin-left: .4rem;
	color: var(--pf-accent);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.post-card:hover .entry-media img,
	.pf-related-card:hover .pf-related-media img { transform: none; }
}

@media print {
	.site-header, .site-footer, #secondary, .pf-ad, .pf-backtotop,
	.post-navigation, #comments, .pf-related, .pf-breadcrumbs { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.entry-content { max-width: none; }
	a { text-decoration: underline; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
