/* =========================================================================
   Persian Platform Magazine v2.1 – scoped, world-class editorial styles
   Palette matched to weknowiran.com:
   navy #06152d · navy-2 #0b3d5c · deep #04132d · gold #f4c15a
   gold-dark #b87518 · gold-deep #9a6115 · teal #14a3a3 · paper #f7f8fb
   Fonts: fa → locally hosted VazirMatn/Vazir (+ bundled fallback),
          ar → bundled Cairo (headings) + Noto Naskh Arabic (body),
          en → Inter + Playfair Display.
   Every rule is scoped to .pp-* components. The active theme is untouched.
   ========================================================================= */

/* ----------------------------------------------------- bundled fonts */

/* Vazirmatn variable (100–900), Persian subset. Used only when the site
   does not already provide its own local VazirMatn. */
@font-face {
	font-family: 'PP Vazirmatn';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('fonts/pp-vazirmatn.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Cairo variable (200–1000), Arabic subset – headings & UI. */
@font-face {
	font-family: 'PP Cairo';
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url('fonts/cairo-arabic.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* Noto Naskh Arabic (400–700), Arabic subset – long-form body text. */
@font-face {
	font-family: 'PP Naskh';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('fonts/noto-naskh-400.woff2') format('woff2');
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ------------------------------------------------------------ vars */

:root {
	--pp-navy: #06152d;
	--pp-navy-2: #0b3d5c;
	--pp-deep: #04132d;
	--pp-gold: #f4c15a;
	--pp-gold-2: #e1bd70;
	--pp-gold-dark: #b87518;
	--pp-gold-deep: #9a6115;
	--pp-teal: #14a3a3;
	--pp-paper: #f7f8fb;
	--pp-ink: #0c0d0e;
	--pp-grey: #706f6f;
	--pp-grey-2: #9da5ae;
	--pp-border: #e0e5ee;
	--pp-white: #ffffff;

	--pp-font-body: 'Inter', -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
	--pp-font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;

	--pp-radius: 16px;
	--pp-radius-sm: 10px;
	--pp-shadow: 0 10px 30px rgba(6, 21, 45, 0.10);
	--pp-shadow-lg: 0 24px 60px rgba(6, 21, 45, 0.18);
	--pp-shadow-gold: 0 12px 30px rgba(212, 162, 76, 0.35);
}

/* Persian: prefer the site's own locally hosted VazirMatn / Vazir
   (works without Google Fonts), then our bundled copy. */
html[lang^='fa'] {
	--pp-font-body: 'VazirMatn', 'Vazir', 'Vazirmatn', 'PP Vazirmatn', Tahoma, Arial, sans-serif;
	--pp-font-head: 'VazirMatn', 'Vazir', 'Vazirmatn', 'PP Vazirmatn', Tahoma, Arial, sans-serif;
}

/* Arabic: bundled Cairo for headings, Noto Naskh for body. */
html[lang^='ar'] {
	--pp-font-body: 'PP Naskh', 'Droid Arabic Kufi', Tahoma, Arial, sans-serif;
	--pp-font-head: 'PP Cairo', 'Droid Arabic Kufi', Tahoma, Arial, sans-serif;
}

/* Connected scripts must never get tracking. */
html[lang^='fa'] .pp-kicker,
html[lang^='ar'] .pp-kicker,
html[lang^='fa'] .pp-card__meta,
html[lang^='ar'] .pp-card__meta { letter-spacing: 0; }

/* ------------------------------------------------- magazine & archive
   (rendered by the [pp_magazine] / [pp_archive] shortcodes inside a page;
   the theme header/footer wrap them normally) */

.pp-magazine,
.pp-archive {
	font-family: var(--pp-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--pp-ink);
	max-width: 1180px;
	margin-inline: auto;
}
.pp-magazine :where(h1, h2, h3, h4),
.pp-archive :where(h1, h2, h3, h4) {
	font-family: var(--pp-font-head);
	margin: 0;
	font-weight: 700;
	line-height: 1.3;
}
.pp-magazine p, .pp-archive p { margin: 0; }
.pp-magazine a.pp-lang, .pp-archive a.pp-lang { text-decoration: none; }
html[lang^='fa'] .pp-magazine,
html[lang^='fa'] .pp-archive,
html[lang^='ar'] .pp-magazine,
html[lang^='ar'] .pp-archive { letter-spacing: 0; }

/* --------------------------------------------------------------- masthead */

.pp-masthead {
	position: relative; overflow: hidden; color: var(--pp-white);
	background:
		radial-gradient(90% 130% at 50% -30%, rgba(11, 61, 92, 0.9), transparent 60%),
		radial-gradient(60% 90% at 12% 110%, rgba(20, 163, 163, 0.16), transparent 55%),
		linear-gradient(180deg, var(--pp-navy) 0%, var(--pp-deep) 100%);
	padding: 56px 28px 60px;
	text-align: center;
	border-radius: var(--pp-radius);
}
.pp-masthead--compact { padding: 44px 28px 48px; }
.pp-masthead__frame {
	position: absolute; inset: 18px; pointer-events: none;
	border: 1px solid rgba(244, 193, 90, 0.35);
	border-radius: calc(var(--pp-radius) - 4px);
}
.pp-masthead__frame::before, .pp-masthead__frame::after {
	content: ''; position: absolute; width: 26px; height: 26px;
	border-color: var(--pp-gold); border-style: solid;
}
.pp-masthead__frame::before { top: -1px; inset-inline-start: -1px; border-width: 2px 0 0 2px; border-start-start-radius: 16px; }
[dir='rtl'] .pp-masthead__frame::before { border-width: 2px 2px 0 0; }
.pp-masthead__frame::after { bottom: -1px; inset-inline-end: -1px; border-width: 0 0 2px 2px; border-end-end-radius: 16px; }
[dir='rtl'] .pp-masthead__frame::after { border-width: 0 0 0 2px; }

.pp-masthead__inner { max-width: 860px; margin-inline: auto; position: relative; }
.pp-kicker {
	font-size: 12.5px; font-weight: 700; letter-spacing: 0.22em;
	text-transform: uppercase; color: var(--pp-gold-dark); margin: 0 0 8px;
}
html[lang^='fa'] .pp-kicker, html[lang^='ar'] .pp-kicker { font-size: 13.5px; letter-spacing: 0; }
.pp-masthead .pp-kicker { color: var(--pp-gold); }
.pp-masthead__title {
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	font-weight: 800; letter-spacing: 0.01em; margin: 10px 0 6px !important;
	text-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
html[lang^='fa'] .pp-masthead__title, html[lang^='ar'] .pp-masthead__title { letter-spacing: 0; line-height: 1.5; }
.pp-masthead__title--sm { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.pp-masthead__rule {
	display: flex; align-items: center; justify-content: center; gap: 14px;
	margin: 16px auto 18px; max-width: 420px;
}
.pp-masthead__rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 193, 90, 0.75)); }
.pp-masthead__rule span:last-child { background: linear-gradient(90deg, rgba(244, 193, 90, 0.75), transparent); }
.pp-masthead__rule i { width: 9px; height: 9px; background: var(--pp-gold); transform: rotate(45deg); flex: none; }
.pp-masthead__tagline {
	color: #c7d2e2; font-size: clamp(1rem, 2.2vw, 1.18rem); max-width: 620px;
	margin: 0 auto; line-height: 1.9;
}

/* ------------------------------------------------------ section headers */

.pp-section-head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 18px; margin: 0 0 26px; flex-wrap: wrap;
}
.pp-section-title { font-size: clamp(1.4rem, 3.2vw, 2rem); color: var(--pp-navy); }
.pp-section-title::after {
	content: ''; display: block; width: 54px; height: 3px; margin-top: 10px;
	background: linear-gradient(90deg, var(--pp-gold), var(--pp-gold-2));
	border-radius: 3px;
}
[dir='rtl'] .pp-section-title::after { background: linear-gradient(270deg, var(--pp-gold), var(--pp-gold-2)); }
.pp-section-hint { color: var(--pp-grey-2); font-size: 14px; padding-bottom: 6px; }

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

.pp-toc-section { padding: 48px 0 44px; }
.pp-toc {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
}
.pp-toc__item { border-bottom: 1px solid var(--pp-border); }
.pp-toc__item:nth-last-child(-n+2) { border-bottom: none; }
.pp-toc__link {
	display: flex; align-items: center; gap: 16px; padding: 18px 6px;
	text-decoration: none; color: inherit; border-radius: 10px;
	transition: background .2s ease, padding .25s ease;
}
.pp-toc__link:hover { background: #fff; padding-inline-start: 12px; }
[dir='rtl'] .pp-toc__link:hover { padding-inline-start: 6px; padding-inline-end: 12px; }
.pp-toc__num {
	font-family: var(--pp-font-head); font-weight: 700; font-size: 1.3rem;
	color: var(--pp-gold-dark); flex: none;
	width: 46px; height: 46px; display: grid; place-items: center;
	border: 1px solid rgba(184, 117, 24, 0.35); border-radius: 50%;
	transition: all .25s ease;
}
.pp-toc__link:hover .pp-toc__num { background: var(--pp-navy); color: var(--pp-gold); border-color: var(--pp-navy); }
.pp-toc__text { min-width: 0; }
.pp-toc__title {
	display: block; font-weight: 700; color: var(--pp-navy); font-size: 1.02rem;
	line-height: 1.6; margin-bottom: 3px;
}
.pp-toc__meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--pp-grey-2); }
.pp-toc__meta em { font-style: normal; color: var(--pp-gold-deep); font-weight: 600; }
.pp-toc__leader { flex: 1; border-bottom: 1px dotted var(--pp-border); align-self: center; min-width: 14px; }
.pp-toc__arrow { color: var(--pp-grey-2); flex: none; transition: all .25s ease; }
[dir='rtl'] .pp-toc__arrow { transform: scaleX(-1); }
.pp-toc__link:hover .pp-toc__arrow { color: var(--pp-gold-dark); transform: translateX(4px); }
[dir='rtl'] .pp-toc__link:hover .pp-toc__arrow { transform: scaleX(-1) translateX(4px); }

/* -------------------------------------------------------------- featured */

.pp-featured-wrap { padding: 8px 0 48px; }
.pp-featured {
	position: relative; border-radius: var(--pp-radius); overflow: hidden;
	background: var(--pp-deep); box-shadow: var(--pp-shadow-lg);
}
.pp-featured__link { display: block; text-decoration: none; color: inherit; }
.pp-featured__media { position: relative; aspect-ratio: 21 / 9.5; min-height: 340px; }
.pp-featured__media--plain { background: linear-gradient(135deg, var(--pp-navy-2), var(--pp-navy)); }
.pp-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-featured__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(4, 19, 45, 0.05) 0%, rgba(4, 19, 45, 0.4) 55%, rgba(4, 19, 45, 0.95) 100%);
}
.pp-featured__body { position: absolute; inset-inline: 0; bottom: 0; padding: 28px 32px 30px; }
.pp-featured__meta {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	color: rgba(255, 255, 255, 0.85); font-size: 13.5px; margin-bottom: 12px;
}
.pp-featured__sep { color: var(--pp-gold); }
.pp-featured__title {
	color: #fff; font-size: clamp(1.4rem, 3.4vw, 2.3rem); line-height: 1.3;
	margin: 0 0 10px !important; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
html[lang^='fa'] .pp-featured__title, html[lang^='ar'] .pp-featured__title { line-height: 1.55; }
.pp-featured__excerpt { color: #d5dcea; max-width: 640px; margin: 0 0 18px; }
.pp-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 14px;
	color: var(--pp-navy); background: linear-gradient(135deg, var(--pp-gold), #e9c05e);
	border: none; box-shadow: var(--pp-shadow-gold);
	transition: transform .22s ease, box-shadow .22s ease; cursor: pointer;
}
.pp-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(212, 162, 76, 0.5); }
[dir='rtl'] .pp-btn svg { transform: scaleX(-1); }

/* ----------------------------------------------------------------- grid */

.pp-grid-wrap { padding: 8px 0 56px; }
.pp-grid {
	display: grid; gap: 26px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.pp-card {
	background: var(--pp-white); border: 1px solid var(--pp-border);
	border-radius: var(--pp-radius); overflow: hidden;
	transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
	display: flex; flex-direction: column;
}
.pp-card:hover { transform: translateY(-6px); box-shadow: var(--pp-shadow-lg); border-color: rgba(244, 193, 90, 0.8); }
.pp-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.pp-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--pp-navy-2), var(--pp-navy)); }
.pp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pp-card:hover .pp-card__media img { transform: scale(1.055); }
.pp-badge, .pp-card__badge {
	display: inline-flex; align-items: center;
	background: linear-gradient(135deg, var(--pp-gold), #e9c05e);
	color: var(--pp-navy); font-size: 12px; font-weight: 800;
	padding: 6px 14px; border-radius: 999px; letter-spacing: 0.02em;
	text-decoration: none;
}
.pp-card__badge { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; box-shadow: 0 6px 18px rgba(4, 19, 45, 0.35); }
.pp-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pp-card__meta {
	display: flex; align-items: center; gap: 8px;
	color: var(--pp-grey-2); font-size: 12.5px; font-weight: 600;
	letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px;
}
.pp-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pp-gold-dark); }
.pp-card__title {
	font-family: var(--pp-font-body); font-size: 1.15rem; color: var(--pp-navy);
	line-height: 1.6; margin: 0 0 8px; font-weight: 700;
}
.pp-card__excerpt { color: var(--pp-grey); font-size: 14.5px; line-height: 1.8; flex: 1; margin: 0; }
.pp-card__more {
	margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
	color: var(--pp-gold-deep); font-weight: 700; font-size: 14px;
}
[dir='rtl'] .pp-card__more svg { transform: scaleX(-1); }
.pp-card__link:hover .pp-card__more svg { transform: translateX(5px); }
[dir='rtl'] .pp-card__link:hover .pp-card__more svg { transform: scaleX(-1) translateX(5px); }

/* --------------------------------------------------------------- archive */

.pp-stats {
	background: linear-gradient(180deg, var(--pp-navy), var(--pp-deep));
	color: #fff; border-radius: var(--pp-radius);
	border-top: 1px solid rgba(244, 193, 90, 0.3);
	border-bottom: 1px solid rgba(244, 193, 90, 0.3);
}
.pp-stats__row {
	display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
	padding-top: 30px; padding-bottom: 30px;
}
.pp-stat strong {
	display: block; font-family: var(--pp-font-head); font-weight: 800;
	font-size: clamp(1.9rem, 4.2vw, 2.7rem); color: var(--pp-gold); line-height: 1.2;
}
.pp-stat span { color: #c7d2e2; font-size: 14px; margin-top: 6px; display: block; }

.pp-archive-list { padding: 44px 0 56px; }
.pp-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pp-chip {
	padding: 9px 20px; border-radius: 999px; border: 1px solid var(--pp-border);
	background: #fff; color: var(--pp-navy); font-weight: 600; font-size: 14px;
	font-family: var(--pp-font-body); cursor: pointer;
	transition: all .22s ease;
}
.pp-chip:hover { border-color: var(--pp-gold-dark); color: var(--pp-gold-deep); }
.pp-chip.is-active { background: var(--pp-navy); border-color: var(--pp-navy); color: var(--pp-gold); box-shadow: var(--pp-shadow); }

.pp-month-group { margin-bottom: 40px; }
.pp-month-group.is-hidden { display: none; }
.pp-month-group__head {
	display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
	padding-bottom: 12px; border-bottom: 2px solid var(--pp-navy);
}
.pp-month-group__title { font-size: 1.3rem; color: var(--pp-navy); margin: 0; }
.pp-month-group__count {
	background: var(--pp-navy); color: var(--pp-gold); font-size: 12.5px; font-weight: 800;
	min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px;
}
.pp-month-list { list-style: none; margin: 0; padding: 0; }
.pp-row { border-bottom: 1px solid var(--pp-border); }
.pp-row.is-hidden { display: none; }
.pp-row__link {
	display: grid; grid-template-columns: 120px 1fr auto auto; align-items: center;
	gap: 18px; padding: 16px 12px; text-decoration: none; color: inherit;
	transition: background .2s ease; border-inline-start: 3px solid transparent;
	border-radius: 8px;
}
.pp-row__link:hover { background: #fff; border-inline-start-color: var(--pp-gold); }
.pp-row__date { color: var(--pp-grey-2); font-size: 13.5px; font-weight: 600; }
.pp-row__title { font-weight: 700; color: var(--pp-navy); font-size: 1.04rem; line-height: 1.6; }
.pp-row__cat {
	font-size: 12px; font-weight: 700; color: var(--pp-gold-deep);
	background: rgba(244, 193, 90, 0.16); border: 1px solid rgba(212, 162, 76, 0.3);
	padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.pp-row__meta { color: var(--pp-grey-2); font-size: 13px; white-space: nowrap; }
.pp-archive-empty-msg { color: var(--pp-grey); text-align: center; padding: 30px 0 10px; }
.pp-archive-empty-msg.is-hidden { display: none; }
.pp-empty { color: var(--pp-grey); text-align: center; padding: 40px 0; }

/* =========================================================================
   SINGLE POST – editorial experience inside the theme's own template.
   Everything is scoped to .pp-story-wrap / .pp-prose (our wrapper), so it
   renders identically in Hello Elementor, Block themes or classic themes.
   ========================================================================= */

/* reading progress bar */
.pp-progress {
	position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 9990;
	background: rgba(244, 193, 90, 0.12);
}
#pp-progress-bar {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--pp-gold-dark), var(--pp-gold));
	box-shadow: 0 0 10px rgba(244, 193, 90, 0.55);
	transition: width .1s linear;
}

/* the story column */
.pp-story-wrap {
	max-width: 780px;
	margin-inline: auto;
	font-family: var(--pp-font-body);
}

/* story meta row – magazine byline, centered under the title */
.pp-story-meta {
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
	gap: 10px 18px;
	margin: 26px 0 34px;
	text-align: center;
}
.pp-story-meta__cat {
	display: inline-flex; align-items: center;
	background: linear-gradient(135deg, var(--pp-gold), #e9c05e);
	color: var(--pp-navy); font-size: 12.5px; font-weight: 800;
	padding: 6px 16px; border-radius: 999px; text-decoration: none;
	box-shadow: 0 4px 14px rgba(212, 162, 76, 0.35);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pp-story-meta__cat:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(212, 162, 76, 0.45); }
.pp-story-meta__item {
	display: inline-flex; align-items: center; gap: 7px;
	color: var(--pp-grey); font-size: 13.5px; font-weight: 500;
}
.pp-story-meta__item svg { color: var(--pp-gold-dark); flex: none; }
.pp-story-meta__item time { color: var(--pp-grey); }

/* ------------------------------------------------------- the prose */

.pp-prose {
	font-size: 17px;
	line-height: 1.9;
	color: #2b3547;
	word-wrap: break-word;
}
html[lang^='fa'] .pp-prose { font-size: 17.5px; line-height: 2.15; }
html[lang^='ar'] .pp-prose { font-size: 18px; line-height: 2.15; }

.pp-prose p { margin: 0 0 1.4em; }
.pp-prose p:first-of-type {
	font-size: 1.1em;
	color: #404b5e;
	line-height: inherit;
}

.pp-prose h2, .pp-prose h3 {
	font-family: var(--pp-font-head);
	color: var(--pp-navy);
	scroll-margin-top: 90px;
	margin: 2.4em 0 0.9em;
	line-height: 1.55;
}
.pp-prose h2 {
	font-size: 1.5rem; font-weight: 800;
	padding-inline-start: 16px;
	border-inline-start: 4px solid var(--pp-gold);
}
.pp-prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--pp-navy-2); }
html[lang='en'] .pp-prose h2, html[lang='en-US'] .pp-prose h2 { letter-spacing: 0.01em; }

.pp-prose a {
	color: var(--pp-gold-deep);
	text-decoration: underline;
	text-decoration-color: rgba(212, 162, 76, 0.45);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.pp-prose a:hover { color: var(--pp-navy); text-decoration-color: var(--pp-navy); }

.pp-prose ul, .pp-prose ol { margin: 0 0 1.5em; padding-inline-start: 1.7em; }
.pp-prose li { margin-bottom: 0.65em; }
.pp-prose li::marker { color: var(--pp-gold-dark); font-weight: 700; }

.pp-prose img { border-radius: 12px; max-width: 100%; height: auto; box-shadow: var(--pp-shadow); }
.pp-prose figure { margin: 2em 0; }
.pp-prose figcaption { font-size: 13px; color: var(--pp-grey-2); text-align: center; margin-top: 10px; }

.pp-prose hr {
	border: none; height: 1px; background: var(--pp-border);
	margin: 3em auto; width: 55%;
}

/* blockquote – editorial pull-quote */
.pp-prose blockquote {
	position: relative;
	margin: 2.4em 0; padding: 30px 34px 28px;
	background: linear-gradient(180deg, #f2f5fa, #ecf0f7);
	border: 1px solid var(--pp-border);
	border-inline-start: 4px solid var(--pp-gold);
	border-radius: 14px;
	color: var(--pp-navy);
	font-size: 1.08em;
	font-weight: 600;
	line-height: 2;
}
.pp-prose blockquote::before {
	content: '«';
	position: absolute; top: 2px; inset-inline-start: 18px;
	font-family: var(--pp-font-head); font-size: 4.2em; line-height: 1;
	color: rgba(244, 193, 90, 0.35);
	pointer-events: none;
}
.pp-prose blockquote p { margin: 0; position: relative; }
html[lang='en'] .pp-prose blockquote,
html[lang='en-US'] .pp-prose blockquote {
	font-family: var(--pp-font-head);
	font-style: italic;
	font-weight: 600;
}

/* tables – brand data tables */
.pp-prose table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	margin: 2.2em 0; font-size: 15px;
	background: var(--pp-white);
	border: 1px solid var(--pp-border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--pp-shadow);
}
.pp-prose th {
	background: var(--pp-navy); color: var(--pp-gold);
	text-align: start; padding: 14px 18px;
	font-weight: 700; font-size: 13.5px;
}
.pp-prose td { padding: 13px 18px; border-bottom: 1px solid var(--pp-border); color: #37414f; }
.pp-prose tbody tr:last-child td { border-bottom: none; }
.pp-prose tbody tr:nth-child(even) td { background: var(--pp-paper); }

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

.pp-post-toc {
	background: var(--pp-white);
	border: 1px solid var(--pp-border);
	border-radius: 16px;
	padding: 24px 26px 18px;
	margin: 0 0 36px;
	box-shadow: var(--pp-shadow);
	position: relative;
	overflow: hidden;
}
.pp-post-toc::before {
	content: '';
	position: absolute; inset-block: 0; inset-inline-start: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--pp-gold), var(--pp-gold-dark));
}
.pp-post-toc__head {
	display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
	color: var(--pp-navy); font-weight: 800; font-size: 16px;
	padding-bottom: 12px; border-bottom: 1px dashed var(--pp-border);
}
.pp-post-toc__head svg { color: var(--pp-gold-dark); }
.pp-post-toc__list { list-style: none; margin: 0; padding: 0; }
.pp-post-toc__item { margin: 0; }
.pp-post-toc__item--h3 { padding-inline-start: 44px; }
[dir='rtl'] .pp-post-toc__item--h3 { padding-inline-start: 0; padding-inline-end: 44px; }
.pp-post-toc__item a {
	display: flex; align-items: baseline; gap: 12px; padding: 8px 10px;
	border-radius: 8px; text-decoration: none; color: #33405a;
	font-weight: 500; font-size: 14.5px; line-height: 1.7;
	transition: background .18s ease, color .18s ease, padding .18s ease;
}
.pp-post-toc__item a em {
	font-style: normal; font-family: var(--pp-font-head); font-weight: 700;
	color: var(--pp-gold-dark); font-size: 13.5px; flex: none; min-width: 2ch;
}
.pp-post-toc__item--h3 a em { color: var(--pp-grey-2); font-size: 12px; }
.pp-post-toc__item a:hover {
	background: rgba(244, 193, 90, 0.12);
	color: var(--pp-gold-deep);
	padding-inline-start: 16px;
}
[dir='rtl'] .pp-post-toc__item a:hover { padding-inline-start: 10px; padding-inline-end: 16px; }

/* ------------------------------------------------------ translations */

.pp-translations {
	margin-top: 48px; padding: 22px 26px;
	background: linear-gradient(180deg, #f2f8f8, #eef5f5);
	border: 1px dashed rgba(20, 163, 163, 0.45);
	border-radius: 14px;
}
.pp-translations__label {
	font-weight: 700; color: var(--pp-navy-2); font-size: 14.5px; margin: 0 0 14px;
}
.pp-translations__row { display: flex; gap: 12px; flex-wrap: wrap; }
.pp-lang {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
	border-radius: 999px; border: 1px solid rgba(6, 21, 45, 0.18);
	color: var(--pp-navy); font-size: 13px; font-weight: 600;
	font-family: var(--pp-font-body);
	transition: all .22s ease; background: #fff; text-decoration: none;
}
.pp-lang img { border-radius: 3px; display: block; width: 20px; height: 14px; object-fit: cover; }
.pp-lang:hover { border-color: var(--pp-gold-dark); color: var(--pp-gold-deep); transform: translateY(-1px); }
.pp-lang--big { padding: 10px 18px; font-size: 14.5px; }
.pp-lang--big img { width: 24px; height: 16px; }

/* ---------------------------------------------------------- related */

.pp-related { margin-top: 52px; }
.pp-related__title {
	font-family: var(--pp-font-head);
	font-size: 1.35rem; color: var(--pp-navy); margin: 0 0 22px;
	display: flex; align-items: center; gap: 14px;
}
.pp-related__title::before {
	content: ''; width: 10px; height: 10px; flex: none;
	background: var(--pp-gold); transform: rotate(45deg);
}
.pp-related__title::after { content: ''; flex: 1; height: 1px; background: var(--pp-border); }
.pp-related .pp-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }


/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
	.pp-toc { grid-template-columns: 1fr; column-gap: 0; }
	.pp-toc__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--pp-border); }
	.pp-toc__item:last-child { border-bottom: none; }
	.pp-featured__media { min-height: 300px; aspect-ratio: auto; }
	.pp-row__link { grid-template-columns: 96px 1fr; row-gap: 6px; }
	.pp-row__cat { justify-self: start; }
	.pp-row__meta { display: none; }
}
@media (max-width: 640px) {
	.pp-masthead { padding: 40px 16px 44px; }
	.pp-masthead__frame { inset: 10px; }
	.pp-featured__body { padding: 22px 20px 24px; }
	.pp-featured__media { min-height: 260px; }
	.pp-row__link { grid-template-columns: 1fr; }
	.pp-row__date { order: 2; }
	.pp-stats__row { grid-template-columns: 1fr; gap: 22px; }
	.pp-post-toc__item--h3 { padding-inline-start: 24px; }
	[dir='rtl'] .pp-post-toc__item--h3 { padding-inline-end: 24px; }
	.pp-prose { font-size: 16.5px; }
	html[lang^='fa'] .pp-prose, html[lang^='ar'] .pp-prose { font-size: 17px; }
	.pp-prose blockquote { padding: 24px 20px 22px; }
	.pp-prose table { font-size: 14px; }
	.pp-prose th, .pp-prose td { padding: 10px 12px; }
	.pp-story-meta { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.pp-card, .pp-card__media img, .pp-btn, .pp-toc__link { transition: none; }
	html { scroll-behavior: auto; }
}


/* =========================================================================
   MAGAZINE STORY HEADER – centered title (v2.2)
   Covers Hello Elementor (.page-header > .entry-title), classic themes
   (h1.entry-title), block themes (h1.wp-block-post-title) and Elementor
   Pro theme-builder widgets. Scoped to single posts only.
   ========================================================================= */

.single-post .page-header,
.single-post header.entry-header,
.single-post .entry-title,
.single-post h1.entry-title,
.single-post h1.wp-block-post-title,
.single-post .elementor-widget-theme-post-title .elementor-heading-title {
	text-align: center;
}

.single-post .page-header,
.single-post header.entry-header {
	margin-bottom: 4px;
}

.single-post .entry-title,
.single-post h1.entry-title,
.single-post h1.wp-block-post-title,
.single-post .elementor-widget-theme-post-title .elementor-heading-title {
	font-family: var(--pp-font-head);
	color: var(--pp-navy);
	font-weight: 800;
	line-height: 1.55;
	letter-spacing: 0;
	font-size: clamp(1.75rem, 4.6vw, 2.9rem);
	max-width: 860px;
	margin-inline: auto;
	padding-inline: 16px;
}

/* centered gold ornament under the title */
.single-post .page-header::after,
.single-post header.entry-header::after,
.single-post h1.wp-block-post-title::after {
	content: '';
	display: block;
	width: 130px; height: 3px;
	margin: 24px auto 6px;
	background: linear-gradient(90deg, transparent, var(--pp-gold) 25%, var(--pp-gold) 75%, transparent);
	border-radius: 3px;
}
.single-post .page-header::after {
	position: relative;
}

/* byline ornament: small gold diamond under the meta row */
.pp-story-meta::after {
	content: '';
	width: 8px; height: 8px;
	background: var(--pp-gold);
	transform: rotate(45deg);
	flex: none;
	margin-top: 2px;
}

/* --------------------------------------------------------- drop cap (EN) */

html[lang^='en'] .pp-prose > p:first-of-type::first-letter {
	font-family: var(--pp-font-head);
	font-size: 3.3em;
	font-weight: 700;
	float: left;
	line-height: 0.82;
	padding: 0.08em 0.12em 0 0;
	color: var(--pp-navy);
}

/* ------------------------------------------------------ featured images */

.pp-prose figure,
.single-post .page-content > figure,
.single-post .entry-content > figure {
	margin: 2.2em auto;
	text-align: center;
}
.pp-prose figure img,
.single-post .page-content > figure img {
	border-radius: 14px;
	box-shadow: var(--pp-shadow-lg);
	max-width: 100%;
	height: auto;
}

/* ----------------------------------------------------- fully responsive */

/* Medium tablets and below */
@media (max-width: 980px) {
	.pp-toc { grid-template-columns: 1fr; }
	.pp-story-wrap { max-width: 720px; }
	.pp-prose { font-size: 16.5px; }
	html[lang^='fa'] .pp-prose { font-size: 17px; }
	html[lang^='ar'] .pp-prose { font-size: 17.5px; }
	.pp-related .pp-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Phones */
@media (max-width: 640px) {
	.pp-story-wrap { max-width: 100%; }
	.single-post .entry-title,
	.single-post h1.entry-title,
	.single-post h1.wp-block-post-title,
	.single-post .elementor-widget-theme-post-title .elementor-heading-title {
		font-size: clamp(1.45rem, 6.4vw, 1.9rem);
		line-height: 1.6;
	}
	.single-post .page-header::after,
	.single-post header.entry-header::after { margin-top: 18px; width: 100px; }
	.pp-story-meta { gap: 8px 14px; margin: 20px 0 28px; }
	.pp-story-meta__item { font-size: 12.5px; }
	.pp-post-toc { padding: 18px 16px 14px; }
	.pp-post-toc__item--h3 { padding-inline-start: 26px; }
	[dir='rtl'] .pp-post-toc__item--h3 { padding-inline-end: 26px; padding-inline-start: 0; }
	.pp-prose { font-size: 16px; }
	html[lang^='fa'] .pp-prose { font-size: 16.5px; line-height: 2.05; }
	html[lang^='ar'] .pp-prose { font-size: 17px; line-height: 2.05; }
	.pp-prose h2 { font-size: 1.3rem; }
	.pp-prose h3 { font-size: 1.1rem; }
	.pp-prose blockquote { padding: 24px 18px 22px; font-size: 1.02em; }
	.pp-prose blockquote::before { font-size: 3em; inset-inline-start: 12px; }
	.pp-prose figure { margin: 1.6em auto; }
	.pp-translations { padding: 18px 16px; }
	.pp-related { margin-top: 40px; }
	.pp-related .pp-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Small phones */
@media (max-width: 400px) {
	.pp-story-meta { flex-direction: column; gap: 8px; }
	.pp-story-meta::after { display: none; }
	.pp-card__body { padding: 16px 16px 18px; }
	.pp-btn { padding: 11px 20px; font-size: 13px; }
}

/* Tables: horizontal scroll on small screens instead of breaking layout */
@media (max-width: 720px) {
	.pp-prose table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
	.pp-prose thead, .pp-prose tbody, .pp-prose tr { display: table; width: max-content; }
}

/* ------------------------------------------------------------ print */

@media print {
	.pp-progress,
	.pp-translations,
	.pp-related,
	.pp-post-toc { display: none !important; }
	.pp-story-wrap { max-width: 100%; }
	.pp-prose { font-size: 12pt; color: #000; }
	.single-post .entry-title,
	.single-post h1.entry-title,
	.single-post h1.wp-block-post-title { color: #000; }
	.pp-prose blockquote { background: none; border: 1px solid #999; box-shadow: none; }
	.pp-prose th { background: #eee !important; color: #000 !important; }
	.pp-prose img { box-shadow: none; }
}
