/*
Theme Name: pfpdl
Theme URI: https://pfpdl.com
Author: pfpdl
Author URI: https://pfpdl.com
Description: Profile picture downloader and PFP gallery theme for pfpdl.com. Username/link downloaders for Instagram, TikTok, X, YouTube, Discord, Twitch, Threads, Pinterest, Telegram, Steam, Reddit and GitHub, plus a PFP gallery with categories, colors, matching pairs, circle preview and app-sized downloads.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: pfpdl
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--surface: #f3f3f5;
	--surface-2: #fafafb;
	--line: #e8e8ec;
	--line-2: #e2e2e6;
	--text: #0f0f10;
	--muted: #5e5e66;
	--accent: #ff4f8b;
	--accent-ink: #0f0f10;
	--focus: #ff4f8b;
	--radius: 18px;
	--radius-lg: 26px;
	--radius-sm: 12px;
	--shadow: 0 12px 40px rgba(15, 15, 16, 0.08);
	--shadow-sm: 0 1px 4px rgba(15, 15, 16, 0.1);
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #55555a; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: var(--text); color: #fff; border-radius: 999px; z-index: 1000; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.icon { flex: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }
.container-faq { max-width: 820px; }
.container-article { max-width: 780px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.section { padding-top: 64px; padding-bottom: 8px; }
.section-tight { padding-top: 28px; padding-bottom: 48px; }
.section-line { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 44px; padding-bottom: 44px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; }
.h-sm { font-size: 18px; margin-bottom: 10px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #2a2a2e; color: #fff; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 58px; font-size: 17px; font-weight: 800; border-radius: 16px; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.icon-btn:hover { border-color: var(--text); }
.icon-btn.is-busy { opacity: .5; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(8px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; position: relative; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #fff; }
.brand-logo { max-height: 36px; width: auto; }
.brand-name { font-weight: 800; font-size: 23px; letter-spacing: -0.045em; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 600; text-decoration: none; }
.main-nav a[aria-current="page"], .main-nav .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 600px) {
	.header-inner { gap: 4px 12px; }
	.main-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
	.main-nav::-webkit-scrollbar { display: none; }
	.main-nav ul { flex-wrap: nowrap; gap: 18px; }
}

/* ---------- Downloader tool ---------- */
.hero { padding: 48px 0 52px; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.hero-title { margin: 0; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.035em; }
.hero-intro { margin: 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.tool { width: 100%; margin-top: 14px; padding: 20px; background: #fff; border: 1px solid #ececef; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.tab:hover { border-color: #c9c9cf; }
.tab[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.tab[aria-pressed="true"] .mono { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tab-more { padding: 0 14px; gap: 6px; }
.tab-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mono { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface); color: var(--text); font-size: 10px; font-weight: 800; letter-spacing: 0.02em; flex: none; }
.mono-lg { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; }
.tool-form { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-input { flex: 1 1 320px; min-width: 0; height: 56px; padding: 0 20px; border: 1px solid var(--surface); border-radius: 999px; background: var(--surface); font-size: 16px; font-weight: 500; }
.tool-input:focus { background: #fff; border-color: var(--text); outline: none; box-shadow: 0 0 0 3px rgba(255, 79, 139, 0.35); }
.tool-input::placeholder { color: #8a8a92; }
.tool-submit { height: 56px; padding: 0 28px; font-size: 16px; }
@media (max-width: 520px) { .tool { padding: 14px; } .tool-submit { flex: 1 1 100%; } }
.tool-status { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; }
.tool-status.is-error { background: #fff0f3; color: #8a1238; }
.tool-result { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.tool-result-pic { flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--surface); }
.tool-result-pic img { width: 100%; height: 100%; object-fit: cover; }
.tool-result-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tool-result-text strong { font-size: 19px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-result-text span { color: var(--muted); font-size: 14px; }
.tool-result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-note { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Downloader cards ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dl-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.dl-card:hover { border-color: #cfcfd5; box-shadow: var(--shadow-sm); color: var(--text); }
.dl-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dl-card-title { font-size: 16px; font-weight: 700; }
.dl-card-desc { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- Steps & FAQ ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 800; font-size: 15px; }
.step-title { font-size: 17px; font-weight: 700; }
.step-text { font-size: 15px; color: var(--muted); }
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-size: 17px; font-weight: 700; min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--muted); flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.page-head { border-bottom: 1px solid var(--line); }
.page-head-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding-top: 26px; padding-bottom: 26px; }
.page-head-text { min-width: 0; flex: 1 1 420px; }
.page-head h1 { margin: 6px 0 6px; }
.page-intro { margin: 0; max-width: 680px; }
.page-intro p { margin: 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b0b0b8; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }
.container > .breadcrumbs { padding-top: 20px; }
.search-pill { flex: 0 1 420px; min-width: 260px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.search-pill input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: 15px; font-weight: 500; }
.search-pill input:focus { outline: none; }
.search-pill:focus-within { box-shadow: 0 0 0 3px rgba(255, 79, 139, 0.35); background: #fff; }
.gallery-wrap { padding-top: 22px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.gallery-wrap .chips { margin-bottom: 0; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.chip:hover { border-color: #c9c9cf; color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.color-filter { display: flex; flex-wrap: wrap; align-items: center; }
.color-filter-label { font-size: 14px; font-weight: 600; margin-right: 6px; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 44px; }
.dot span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.dot.is-active span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.filter-right { display: flex; align-items: center; gap: 12px; }
.sort-form select { height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f0f10' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font-size: 14px; font-weight: 600; cursor: pointer; }

.pfp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-flow: dense; gap: 26px 16px; }
@media (max-width: 520px) { .pfp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.pfp-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pfp-card.is-pair { grid-column: span 2; }
.pfp-thumb { position: relative; display: flex; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pfp-card.is-pair .pfp-thumb { aspect-ratio: 2 / 1; }
.pfp-thumb img { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pfp-thumb:hover img { transform: scale(1.04); }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm); }
.pfp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pfp-meta-text { min-width: 0; display: flex; flex-direction: column; }
.pfp-name { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfp-cat { font-size: 12px; color: var(--muted); }
.pfp-grid-ad { grid-column: 1 / -1; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; }
.pagination { display: flex; justify-content: center; margin-top: 18px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; margin: 0 2px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.pagination .page-numbers.current { background: var(--text); color: #fff; }
.pagination a.page-numbers:hover { background: var(--surface); color: var(--text); }
.js .load-more + .pagination { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.empty { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty p { margin: 0; }
.about-block { display: flex; flex-wrap: wrap; gap: 28px 64px; }
.about-block > div { flex: 1 1 340px; }
.about-block > nav { flex: 2 1 460px; }
.link-columns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 2px 20px; }
.link-columns a { display: flex; align-items: center; min-height: 32px; font-size: 15px; color: var(--muted); text-decoration: none; }
.link-columns a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Single PFP ---------- */
.pfp-single { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; padding-top: 20px; padding-bottom: 24px; }
.pfp-single-media { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pfp-single-panel { flex: 1 1 360px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 22px; }
.stage { position: relative; display: flex; gap: 0; width: 100%; max-width: 620px; border-radius: 24px; overflow: hidden; background: var(--surface); }
.stage-item { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.stage-item img { width: 100%; height: 100%; object-fit: cover; }
.crop { position: absolute; inset: 6%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.95); box-shadow: 0 0 0 999px rgba(15, 15, 16, 0.42); transition: border-radius .35s ease; pointer-events: none; }
.stage.is-pair .crop { inset: 7%; }
.stage-label { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; z-index: 2; }
[data-shape="rounded"] .crop { border-radius: 24%; }
[data-shape="square"] .crop { border-radius: 4%; }
.looks { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.looks-title { font-size: 14px; font-weight: 700; }
.looks-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.look { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.look-pic { display: block; overflow: hidden; border-radius: 50%; background: var(--surface); flex: none; transition: border-radius .35s ease; }
.look-pic img { width: 100%; height: 100%; object-fit: cover; }
[data-shape="rounded"] .look-pic { border-radius: 24%; }
[data-shape="square"] .look-pic { border-radius: 4%; }
.look-label { font-size: 12px; color: var(--muted); }
.look-chat { flex: 1 1 220px; display: flex; gap: 10px; align-items: flex-start; }
.look-bubble-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.look-who { font-size: 13px; font-weight: 700; }
.look-bubble { font-size: 14px; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface); }
.pfp-title { margin: 0; font-size: clamp(28px, 3vw, 34px); }
.pfp-title-sub { display: block; font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.pfp-single-panel > .muted { margin: -14px 0 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text); }
.tag:hover { background: #e9e9ee; color: var(--text); }
.control { display: flex; flex-direction: column; gap: 10px; }
.control-title { font-size: 14px; font-weight: 700; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 14px; }
.seg-btn { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow-sm); }
.size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size-btn { min-height: 58px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.size-btn span { font-size: 12px; font-weight: 500; color: #55555a; }
.size-btn[aria-pressed="true"] { border-color: var(--text); background: var(--surface); }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.actions-row .btn { flex: 1 1 0; }
.report-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; color: var(--muted); }
.pfp-desc { color: var(--muted); }

/* ---------- Blog / pages ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #c4c4cc; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.post-card-body .tag { align-self: flex-start; }
.post-card-title { font-size: 20px; margin: 0; }
.post-card-title a { text-decoration: none; }
.post-card-body p { margin: 0; font-size: 15px; }
.article { padding-top: 20px; padding-bottom: 56px; }
.article-head { margin: 18px 0 18px; }
.article-head h1 { margin-bottom: 8px; }
.article-media { margin: 0 0 24px; }
.article-media img { border-radius: var(--radius); }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content pre { overflow-x: auto; padding: 16px; background: var(--surface); border-radius: var(--radius-sm); font-size: 14px; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; }
.alignwide { max-width: 1000px; }
.alignfull { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.comment-form .submit { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Ads ---------- */
.pfp-ad { margin: 24px auto; text-align: center; overflow: hidden; }
.pfp-ad-ad-after-tool { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer-inner { padding-top: 44px; padding-bottom: 28px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.footer-about { flex: 1 1 240px; }
.footer-about .brand { margin-bottom: 10px; }
.footer-about p { font-size: 14px; max-width: 280px; }
.footer-col { flex: 1 1 160px; }
.footer-col-wide { flex: 2 1 340px; }
.footer-title { font-size: 14px; font-weight: 800; letter-spacing: 0; margin: 0 0 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 20px; }
.footer-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-list a { display: flex; align-items: center; min-height: 30px; font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-list a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin: 28px 0 0; }
@media (max-width: 520px) { .footer-list-2 { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.pfpdl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); padding: 12px 18px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1000; }
.pfpdl-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
