/*
 * product-description.css — BEM component system for CKEditor product content
 * Version 1.0 · 2026-10-29
 *
 * ── RULES ──────────────────────────────────────────────────────────────
 * 1. Every content (product description AND every FAQ answer) has ONE root:
 *        <div class="pd pd--violet" dir="rtl" lang="fa"> … </div>
 * 2. Colour = root modifier only: pd--emerald | pd--violet | pd--blue | pd--amber
 *    Dark mode is automatic (site data-theme="dark").
 * 3. NO <style> tag and NO style="" inside content. Classes only.
 * 4. BEM naming: .pd-block · .pd-block__element · .pd-block--modifier
 * 5. Real headings: h2 for a section title, h3 for a card title.
 * 6. Need something new? Do not add it inside the content. Add it to the
 *    "EXTENSIONS" section at the END of this file, with the pd- prefix,
 *    and send the file back for review.
 *
 * ── BLOCKS (element · modifier) ───────────────────────────────────────
 * pd-section   __inner __head __head--center __title __lead
 *              --alt --tight --outline --bare
 * pd-hero      __title __highlight(em) __lead __actions
 * pd-tag       --danger
 * pd-btn       --primary --outline
 * pd-grid      --cols-2 --cols-3 --cols-4 --narrow
 * pd-card      __badge __title __text __footer
 *              --stripe --feature --soft --outline --accent
 * pd-steps     (<ol>) __item __title __text · --cols-3 · numbers are automatic
 * pd-plans     __title __list __item __name
 * pd-list      (<ul>/<ol>) __item __title __text
 *              --check --boxed --numbered --issues --cols-2 --cols-3
 * pd-callout   __icon __title __footer · --warn --danger --with-icon
 * pd-board     __block __title __subtitle __highlight
 * pd-table     __table __caption __yes __no · --compact (use inside FAQ answers)
 *              Default table: every <td> needs data-title="column name"
 *              (it turns into cards on phones).
 * pd-cta       __title __text __actions
 * pd-related   __head __title __text __grid __link
 * pd-note
 *
 * ── SKELETON ──────────────────────────────────────────────────────────
 * <div class="pd pd--emerald" dir="rtl" lang="fa">
 *   <section class="pd-hero">
 *     <span class="pd-tag">…</span>
 *     <h2 class="pd-hero__title">… <em class="pd-hero__highlight">…</em></h2>
 *     <p class="pd-hero__lead">…</p>
 *     <div class="pd-hero__actions"><a class="pd-btn pd-btn--primary" href="…">…</a></div>
 *   </section>
 *   <section class="pd-section pd-section--alt">
 *     <div class="pd-section__inner">
 *       <div class="pd-section__head"><h2 class="pd-section__title">…</h2></div>
 *       <div class="pd-grid pd-grid--cols-3">
 *         <div class="pd-card pd-card--stripe">
 *           <span class="pd-card__badge">01</span>
 *           <h3 class="pd-card__title">…</h3>
 *           <p class="pd-card__text">…</p>
 *         </div>
 *       </div>
 *     </div>
 *   </section>
 * </div>
 *
 * ── TECHNICAL NOTE ────────────────────────────────────────────────────
 * Every selector starts with ":is(.pd, #pd-scope)". The id only raises
 * specificity above the site's generic ".single-product .product-content__card"
 * p/h2/h3 rules; it never has to exist in the HTML. Keep this prefix on any
 * rule you add.
 */

/* =========================================================
 * 1. Tokens + palettes
 * ========================================================= */

.pd {
	--pd-brand: #6d28d9;
	--pd-brand-2: #0ea5e9;
	--pd-grad: linear-gradient(135deg, #6d28d9, #2563eb 54%, #0ea5e9);
	--pd-grad-stripe: linear-gradient(180deg, #4285f4 0%, #7c71d9 52%, #e868a0 100%);
	--pd-hero-a: #f5f0ff;
	--pd-hero-b: #eef8ff;

	--pd-ink: #111827;
	--pd-text: #374151;
	--pd-muted: #64748b;
	--pd-line: #e5e7eb;
	--pd-surface: #fff;
	--pd-surface-alt: #f8f7ff;
	--pd-soft: color-mix(in srgb, var(--pd-brand) 8%, var(--pd-surface));
	--pd-on-brand: #fff;

	--pd-good: #059669;
	--pd-bad: #dc2626;
	--pd-warn: #f59e0b;
	--pd-warn-bg: #fff8e6;
	--pd-danger: #e11d48;
	--pd-danger-bg: #fff1f2;

	--pd-radius-lg: 24px;
	--pd-radius: 20px;
	--pd-radius-sm: 14px;
	--pd-shadow: 0 14px 38px color-mix(in srgb, var(--pd-brand) 12%, transparent);
	--pd-gap: 16px;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	direction: rtl;
	color: var(--pd-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.9;
	text-align: right;
}

.pd--emerald {
	--pd-brand: #0f7660;
	--pd-brand-2: #63b99c;
	--pd-grad: linear-gradient(135deg, #0f7660, #249878 52%, #79c9ad);
	--pd-grad-stripe: linear-gradient(180deg, #0f7660 0%, #52ad8e 50%, #9bd5c0 100%);
	--pd-hero-a: #f3faf7;
	--pd-hero-b: #ffffff;
	--pd-ink: #172b24;
	--pd-text: #364b44;
	--pd-muted: #6b7f78;
	--pd-line: #dfece7;
	--pd-surface-alt: #fafdfc;
}

.pd--violet {
	/* default tokens above are the violet palette */
}

.pd--blue {
	--pd-brand: #1d4ed8;
	--pd-brand-2: #06b6d4;
	--pd-grad: linear-gradient(135deg, #1d4ed8, #2563eb 50%, #06b6d4);
	--pd-grad-stripe: linear-gradient(180deg, #1d4ed8 0%, #3b82f6 50%, #67e8f9 100%);
	--pd-hero-a: #eff6ff;
	--pd-hero-b: #ecfeff;
	--pd-surface-alt: #f7faff;
}

.pd--amber {
	--pd-brand: #b45309;
	--pd-brand-2: #f59e0b;
	--pd-grad: linear-gradient(135deg, #b45309, #d97706 50%, #f59e0b);
	--pd-grad-stripe: linear-gradient(180deg, #b45309 0%, #f59e0b 55%, #fcd34d 100%);
	--pd-hero-a: #fffbeb;
	--pd-hero-b: #fff7ed;
	--pd-surface-alt: #fffcf5;
}

/* Dark mode: shared surfaces, brand gets a lighter tint per palette */
[data-theme="dark"] .pd {
	--pd-ink: #fff;
	--pd-text: #c7c5ee;
	--pd-muted: #9d9acb;
	--pd-line: #302d62;
	--pd-surface: #151242;
	--pd-surface-alt: #0d0b35;
	--pd-soft: color-mix(in srgb, var(--pd-brand) 16%, var(--pd-surface));
	--pd-hero-a: #17113f;
	--pd-hero-b: #092d43;
	--pd-good: #34d399;
	--pd-bad: #fb7185;
	--pd-warn: #fbbf24;
	--pd-warn-bg: #2b230b;
	--pd-danger: #fb7185;
	--pd-danger-bg: #32101d;
	--pd-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

[data-theme="dark"] .pd--violet {
	--pd-brand: #a78bfa;
	--pd-brand-2: #22d3ee;
	--pd-grad: linear-gradient(135deg, #7c3aed, #4f46e5 52%, #0891b2);
}

[data-theme="dark"] .pd--emerald {
	--pd-brand: #5fd3b0;
	--pd-brand-2: #a7f3d0;
	--pd-grad: linear-gradient(135deg, #0f7660, #14937a 52%, #2fb391);
}

[data-theme="dark"] .pd--blue {
	--pd-brand: #93c5fd;
	--pd-brand-2: #67e8f9;
	--pd-grad: linear-gradient(135deg, #1d4ed8, #2563eb 52%, #0891b2);
}

[data-theme="dark"] .pd--amber {
	--pd-brand: #fcd34d;
	--pd-brand-2: #fbbf24;
	--pd-grad: linear-gradient(135deg, #b45309, #c2410c 52%, #d97706);
}

/* =========================================================
 * 2. Base typography (lower than any BEM class)
 * ========================================================= */

:is(.pd, #pd-scope) *,
:is(.pd, #pd-scope) *::before,
:is(.pd, #pd-scope) *::after {
	box-sizing: border-box;
}

:is(.pd, #pd-scope) :is(h2, h3, h4) {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--pd-ink);
	font-weight: 800;
}

:is(.pd, #pd-scope) h2 {
	font-size: 24px;
	line-height: 1.45;
}

:is(.pd, #pd-scope) :is(h3, h4) {
	font-size: 18px;
	line-height: 1.55;
}

:is(.pd, #pd-scope) p {
	margin: 0;
	color: inherit;
	font-size: 16px;
	line-height: 1.9;
	text-align: inherit;
}

:is(.pd, #pd-scope) p + p {
	margin-top: 10px;
}

:is(.pd, #pd-scope) strong {
	color: var(--pd-ink);
	font-weight: 800;
}

:is(.pd, #pd-scope) a {
	color: var(--pd-brand);
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

:is(.pd, #pd-scope) img {
	display: block;
	max-width: 100%;
	height: auto;
}

:is(.pd, #pd-scope) :is(ul, ol) {
	margin: 0;
	padding-right: 22px;
}

/* =========================================================
 * 3. pd-section — vertical band that holds one topic
 * ========================================================= */

:is(.pd, #pd-scope) .pd-section {
	position: relative;
	padding: 56px 0;
	background: var(--pd-surface);
	border-radius: var(--pd-radius-lg);
	overflow: hidden;
}

:is(.pd, #pd-scope) .pd-section + .pd-section {
	margin-top: 18px;
}

:is(.pd, #pd-scope) .pd-section--alt {
	background: var(--pd-surface-alt);
}

:is(.pd, #pd-scope) .pd-section--tight {
	padding: 28px 0;
}

:is(.pd, #pd-scope) .pd-section--outline {
	background:
		linear-gradient(var(--pd-surface), var(--pd-surface)) padding-box,
		var(--pd-grad) border-box;
	border: 3px solid transparent;
}

:is(.pd, #pd-scope) .pd-section--bare {
	padding: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
}

:is(.pd, #pd-scope) .pd-section__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 18px;
}

/* vertical rhythm between blocks inside a section */
:is(.pd, #pd-scope) .pd-section__inner > * + * {
	margin-top: 18px;
}

:is(.pd, #pd-scope) .pd-section__head {
	margin-bottom: 28px;
}

:is(.pd, #pd-scope) .pd-section__head--center {
	text-align: center;
}

:is(.pd, #pd-scope) .pd-section__title {
	margin-top: 10px;
}

:is(.pd, #pd-scope) .pd-section__head > .pd-section__title:first-child {
	margin-top: 0;
}

:is(.pd, #pd-scope) .pd-section__lead {
	margin-top: 8px;
	color: var(--pd-muted);
}

/* =========================================================
 * 4. pd-hero — first block of the page
 * ========================================================= */

:is(.pd, #pd-scope) .pd-hero {
	position: relative;
	isolation: isolate;
	padding: 56px 28px 49px;
	text-align: center;
	background: linear-gradient(145deg, var(--pd-hero-a), var(--pd-hero-b));
	border-radius: var(--pd-radius-lg);
	overflow: hidden;
}

:is(.pd, #pd-scope) .pd-hero::before,
:is(.pd, #pd-scope) .pd-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

:is(.pd, #pd-scope) .pd-hero::before {
	top: -185px;
	left: -100px;
	width: 340px;
	height: 340px;
	background: radial-gradient(circle, color-mix(in srgb, var(--pd-brand-2) 24%, transparent), transparent 68%);
}

:is(.pd, #pd-scope) .pd-hero::after {
	right: -160px;
	bottom: -240px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, color-mix(in srgb, var(--pd-brand) 20%, transparent), transparent 68%);
}

:is(.pd, #pd-scope) .pd-hero__title {
	max-width: 820px;
	margin: 18px auto 14px;
	font-size: 28px;
	line-height: 1.35;
}

:is(.pd, #pd-scope) .pd-hero__title:first-child {
	margin-top: 0;
}

:is(.pd, #pd-scope) .pd-hero__highlight {
	font-style: normal;
	color: var(--pd-brand);
	background-image: var(--pd-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

:is(.pd, #pd-scope) .pd-hero__lead {
	max-width: 770px;
	margin: 0 auto;
}

:is(.pd, #pd-scope) .pd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 26px;
}

/* =========================================================
 * 5. pd-tag — small pill label
 * ========================================================= */

:is(.pd, #pd-scope) .pd-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 13px;
	color: var(--pd-brand);
	background: var(--pd-soft);
	border: 1px solid color-mix(in srgb, var(--pd-brand) 24%, transparent);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.6;
}

:is(.pd, #pd-scope) .pd-tag::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pd-brand-2);
}

:is(.pd, #pd-scope) .pd-tag--danger {
	color: var(--pd-danger);
	background: var(--pd-surface);
	border-color: color-mix(in srgb, var(--pd-danger) 28%, var(--pd-line));
}

:is(.pd, #pd-scope) .pd-tag--danger::before {
	background: var(--pd-danger);
}

/* =========================================================
 * 6. pd-btn — link styled as button
 * ========================================================= */

:is(.pd, #pd-scope) .pd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 21px;
	border-radius: 13px;
	font-weight: 800;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

:is(.pd, #pd-scope) .pd-btn:hover {
	transform: translateY(-2px);
}

:is(.pd, #pd-scope) .pd-btn:focus-visible {
	outline: 3px solid var(--pd-brand-2);
	outline-offset: 3px;
}

:is(.pd, #pd-scope) .pd-btn--primary {
	color: var(--pd-on-brand);
	background-color: var(--pd-brand);
	background-image: var(--pd-grad);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--pd-brand) 28%, transparent);
}

:is(.pd, #pd-scope) .pd-btn--outline {
	color: var(--pd-brand);
	background: var(--pd-surface);
	border: 1px solid color-mix(in srgb, var(--pd-brand) 42%, var(--pd-line));
}

/* =========================================================
 * 7. pd-grid — responsive columns
 * ========================================================= */

:is(.pd, #pd-scope) .pd-grid {
	display: grid;
	grid-template-columns: repeat(var(--pd-cols, 2), minmax(0, 1fr));
	gap: var(--pd-gap);
}

:is(.pd, #pd-scope) .pd-grid--cols-2 {
	--pd-cols: 2;
}

:is(.pd, #pd-scope) .pd-grid--cols-3 {
	--pd-cols: 3;
}

:is(.pd, #pd-scope) .pd-grid--cols-4 {
	--pd-cols: 4;
}

:is(.pd, #pd-scope) .pd-grid--narrow {
	max-width: 880px;
	margin-right: auto;
	margin-left: auto;
}

/* =========================================================
 * 8. pd-card — the generic box
 * ========================================================= */

:is(.pd, #pd-scope) .pd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

:is(.pd, #pd-scope) .pd-grid > .pd-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--pd-brand) 32%, var(--pd-line));
	box-shadow: var(--pd-shadow);
}

:is(.pd, #pd-scope) .pd-card > .pd-tag {
	align-self: flex-start;
	margin-bottom: 6px;
}

:is(.pd, #pd-scope) .pd-card__badge {
	color: var(--pd-brand);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.4;
}

:is(.pd, #pd-scope) .pd-card__title {
	font-size: 18px;
	line-height: 1.55;
}

:is(.pd, #pd-scope) .pd-card__text {
	color: var(--pd-muted);
}

:is(.pd, #pd-scope) .pd-card__footer {
	margin-top: auto;
	padding-top: 12px;
	color: var(--pd-brand);
	border-top: 1px dashed var(--pd-line);
	font-size: 15px;
	font-weight: 800;
}

/* side gradient stripe (tool lists) */
:is(.pd, #pd-scope) .pd-card--stripe::after {
	content: "";
	position: absolute;
	top: 8px;
	right: 0;
	bottom: 8px;
	width: 5px;
	border-radius: 6px 0 0 6px;
	background: var(--pd-grad-stripe);
	pointer-events: none;
}

/* model / plan card: taller, footer pinned to bottom */
:is(.pd, #pd-scope) .pd-card--feature {
	min-height: 220px;
	padding: 26px 24px;
	border-radius: 18px;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--pd-brand) 6%, transparent);
}

/* tinted info box (duration, guarantees …) */
:is(.pd, #pd-scope) .pd-card--soft {
	background: var(--pd-soft);
	border-color: color-mix(in srgb, var(--pd-brand) 24%, var(--pd-line));
}

/* transparent box with brand border (API, side questions …) */
:is(.pd, #pd-scope) .pd-card--outline {
	background: transparent;
	border-color: color-mix(in srgb, var(--pd-brand) 32%, var(--pd-line));
}

/* box with thick brand edge (terms, rules …) */
:is(.pd, #pd-scope) .pd-card--accent {
	border-right: 5px solid var(--pd-brand);
}

/* =========================================================
 * 9. pd-steps — numbered how-to (use <ol>)
 * ========================================================= */

:is(.pd, #pd-scope) .pd-steps {
	display: grid;
	grid-template-columns: repeat(var(--pd-cols, 2), minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pd-step;
}

:is(.pd, #pd-scope) .pd-steps--cols-3 {
	--pd-cols: 3;
}

:is(.pd, #pd-scope) .pd-steps__item {
	position: relative;
	padding: 19px 56px 19px 18px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius);
	counter-increment: pd-step;
}

:is(.pd, #pd-scope) .pd-steps__item::before {
	content: counter(pd-step);
	position: absolute;
	top: 18px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: var(--pd-on-brand);
	background: var(--pd-brand);
	border-radius: 9px;
	font-size: 13px;
	font-weight: 900;
}

:is(.pd, #pd-scope) .pd-steps__title {
	margin-bottom: 3px;
	font-size: 18px;
}

:is(.pd, #pd-scope) .pd-steps__text {
	color: var(--pd-muted);
}

/* =========================================================
 * 10. pd-plans — "which plan should I buy" guide
 * ========================================================= */

:is(.pd, #pd-scope) .pd-plans {
	padding: 30px 30px 24px;
	background: linear-gradient(145deg, var(--pd-surface) 0%, color-mix(in srgb, var(--pd-surface-alt) 72%, var(--pd-surface)) 100%);
	border: 2px solid color-mix(in srgb, var(--pd-brand) 34%, var(--pd-line));
	border-right-width: 5px;
	border-radius: 22px;
}

:is(.pd, #pd-scope) .pd-plans__title {
	margin-bottom: 12px;
	line-height: 1.55;
}

:is(.pd, #pd-scope) .pd-plans__list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

:is(.pd, #pd-scope) .pd-plans__item {
	position: relative;
	padding: 18px 28px 18px 8px;
	border-top: 1px solid color-mix(in srgb, var(--pd-brand) 24%, var(--pd-line));
	line-height: 1.95;
}

:is(.pd, #pd-scope) .pd-plans__item:first-child {
	border-top: 0;
}

:is(.pd, #pd-scope) .pd-plans__item::before {
	content: "";
	position: absolute;
	top: 26px;
	right: 3px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pd-brand);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--pd-brand) 12%, transparent);
}

:is(.pd, #pd-scope) .pd-plans__name {
	color: var(--pd-ink);
	font-size: 17px;
	font-weight: 800;
	white-space: nowrap;
}

/* =========================================================
 * 11. pd-list — styled bullet lists (use <ul>/<ol>)
 * ========================================================= */

:is(.pd, #pd-scope) .pd-list {
	display: grid;
	grid-template-columns: repeat(var(--pd-cols, 1), minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

:is(.pd, #pd-scope) .pd-list--cols-2 {
	--pd-cols: 2;
}

:is(.pd, #pd-scope) .pd-list--cols-3 {
	--pd-cols: 3;
}

:is(.pd, #pd-scope) .pd-list__item {
	position: relative;
	padding-right: 34px;
}

:is(.pd, #pd-scope) .pd-list__item::before {
	content: "";
	position: absolute;
	top: 11px;
	right: 6px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pd-brand);
}

:is(.pd, #pd-scope) .pd-list__title {
	display: block;
	color: var(--pd-ink);
	font-size: 18px;
	font-weight: 800;
}

:is(.pd, #pd-scope) .pd-list__text {
	display: block;
	color: var(--pd-muted);
}

/* green check marks */
:is(.pd, #pd-scope) .pd-list--check .pd-list__item::before {
	content: "✓";
	top: 3px;
	right: 0;
	display: grid;
	place-items: center;
	width: 23px;
	height: 23px;
	color: #fff;
	background: var(--pd-good);
	font-size: 12px;
	font-weight: 900;
}

/* boxed items with a glowing dot */
:is(.pd, #pd-scope) .pd-list--boxed .pd-list__item {
	padding: 13px 46px 13px 14px;
	background: var(--pd-surface-alt);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius-sm);
}

:is(.pd, #pd-scope) .pd-list--boxed .pd-list__item::before {
	top: 21px;
	right: 17px;
	width: 10px;
	height: 10px;
	background: var(--pd-grad);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--pd-brand) 12%, transparent);
}

/* boxed + auto numbers (use <ol>) */
:is(.pd, #pd-scope) .pd-list--numbered {
	counter-reset: pd-list;
}

:is(.pd, #pd-scope) .pd-list--numbered .pd-list__item {
	min-height: 82px;
	padding: 17px 58px 17px 15px;
	background: var(--pd-surface-alt);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius-sm);
	counter-increment: pd-list;
}

:is(.pd, #pd-scope) .pd-list--numbered .pd-list__item::before {
	content: counter(pd-list);
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #fff;
	background: var(--pd-grad);
	border-radius: 10px;
	font-size: 13px;
	font-weight: 900;
}

/* risk items with a red "!" badge */
:is(.pd, #pd-scope) .pd-list--issues .pd-list__item {
	padding: 16px 48px 16px 16px;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 13px;
}

:is(.pd, #pd-scope) .pd-list--issues .pd-list__item::before {
	content: "!";
	top: 16px;
	right: 15px;
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	color: #fff;
	background: var(--pd-danger);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 900;
}

/* =========================================================
 * 12. pd-callout — notes, warnings, risks
 * ========================================================= */

:is(.pd, #pd-scope) .pd-callout {
	position: relative;
	margin-top: 18px;
	padding: 20px 24px;
	color: var(--pd-text);
	background: color-mix(in srgb, var(--pd-brand) 6%, var(--pd-surface));
	border: 1px solid color-mix(in srgb, var(--pd-brand) 23%, var(--pd-line));
	border-right: 5px solid var(--pd-brand);
	border-radius: var(--pd-radius);
}

:is(.pd, #pd-scope) .pd-callout:first-child {
	margin-top: 0;
}

:is(.pd, #pd-scope) .pd-callout--warn {
	background: var(--pd-warn-bg);
	border-color: color-mix(in srgb, var(--pd-warn) 45%, transparent);
	border-right-color: var(--pd-warn);
}

:is(.pd, #pd-scope) .pd-callout--danger {
	padding: 28px;
	background: var(--pd-danger-bg);
	border-color: color-mix(in srgb, var(--pd-danger) 38%, var(--pd-line));
	border-right: 6px solid var(--pd-danger);
	box-shadow: 0 12px 30px color-mix(in srgb, var(--pd-danger) 10%, transparent);
}

:is(.pd, #pd-scope) .pd-callout--with-icon {
	padding-right: 54px;
}

:is(.pd, #pd-scope) .pd-callout__icon {
	position: absolute;
	top: 18px;
	right: 18px;
	font-size: 20px;
	line-height: 1.4;
}

:is(.pd, #pd-scope) .pd-callout__title {
	margin-bottom: 6px;
	font-size: 18px;
}

:is(.pd, #pd-scope) .pd-callout__footer {
	margin-top: 15px;
	padding: 13px 15px;
	color: var(--pd-ink);
	background: var(--pd-surface);
	border: 1px solid color-mix(in srgb, var(--pd-danger) 30%, var(--pd-line));
	border-radius: 12px;
	font-weight: 800;
}

/* =========================================================
 * 13. pd-board — big card with top gradient bar, split in blocks
 * ========================================================= */

:is(.pd, #pd-scope) .pd-board {
	position: relative;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius-lg);
	box-shadow: var(--pd-shadow);
	overflow: hidden;
}

:is(.pd, #pd-scope) .pd-board::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--pd-grad);
}

:is(.pd, #pd-scope) .pd-board__block {
	padding: 34px;
}

:is(.pd, #pd-scope) .pd-board__block + .pd-board__block {
	border-top: 1px solid var(--pd-line);
}

:is(.pd, #pd-scope) .pd-board__title {
	margin-bottom: 14px;
}

:is(.pd, #pd-scope) .pd-board__subtitle {
	margin-top: 25px;
	font-size: 18px;
}

:is(.pd, #pd-scope) .pd-board__subtitle:first-child {
	margin-top: 0;
}

:is(.pd, #pd-scope) .pd-board__highlight {
	margin-top: 18px;
	padding: 14px 17px;
	color: var(--pd-ink);
	background: var(--pd-soft);
	border: 1px solid color-mix(in srgb, var(--pd-brand) 24%, var(--pd-line));
	border-radius: var(--pd-radius-sm);
	font-weight: 800;
	text-align: center;
}

/* =========================================================
 * 14. pd-table — comparison table
 *   <div class="pd-table">
 *     <table class="pd-table__table"> … <td data-title="Plus" class="pd-table__yes">
 *   Default: becomes stacked cards under 560px (needs data-title on every td).
 *   pd-table--compact: small fluid font, keeps table layout, scrolls sideways.
 * ========================================================= */

:is(.pd, #pd-scope) .pd-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 18px;
}

:is(.pd, #pd-scope) .pd-table__table {
	width: 100%;
	min-width: 720px;
	margin: 0;
	border-collapse: collapse;
	direction: rtl;
}

:is(.pd, #pd-scope) .pd-table__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:is(.pd, #pd-scope) .pd-table__table th,
:is(.pd, #pd-scope) .pd-table__table td {
	padding: 15px 14px;
	text-align: center;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--pd-line);
	overflow-wrap: break-word;
}

:is(.pd, #pd-scope) .pd-table__table thead th {
	color: #fff;
	background-color: var(--pd-brand);
	background-image: var(--pd-grad);
	font-size: 16px;
	font-weight: 800;
}

:is(.pd, #pd-scope) .pd-table__table thead th:first-child,
:is(.pd, #pd-scope) .pd-table__table th[scope="row"] {
	text-align: right;
}

:is(.pd, #pd-scope) .pd-table__table th[scope="row"] {
	color: var(--pd-ink);
	font-weight: 800;
}

:is(.pd, #pd-scope) .pd-table__table tbody tr:nth-child(even) > * {
	background: var(--pd-surface-alt);
}

:is(.pd, #pd-scope) .pd-table__table tbody tr:last-child > * {
	border-bottom: 0;
}

:is(.pd, #pd-scope) .pd-table__yes {
	color: var(--pd-good);
	font-weight: 900;
}

:is(.pd, #pd-scope) .pd-table__no {
	color: var(--pd-bad);
	font-weight: 900;
}

:is(.pd, #pd-scope) .pd-table--compact .pd-table__table {
	min-width: 0;
	font-size: clamp(11px, 1.35vw, 14px);
	line-height: 1.7;
}

:is(.pd, #pd-scope) .pd-table--compact .pd-table__table th,
:is(.pd, #pd-scope) .pd-table--compact .pd-table__table td {
	padding: clamp(6px, 1vw, 10px);
	border: 1px solid var(--pd-line);
	font-size: inherit;
}

:is(.pd, #pd-scope) .pd-table--compact .pd-table__table td:first-child {
	text-align: right;
	font-weight: 700;
}

:is(.pd, #pd-scope) .pd-table--wide .pd-table__table {
	min-width: 720px;
}

/* =========================================================
 * 15. pd-cta — closing gradient banner
 * ========================================================= */

:is(.pd, #pd-scope) .pd-cta {
	padding: 45px 28px;
	color: #fff;
	text-align: center;
	background-color: var(--pd-brand);
	background-image: var(--pd-grad);
	border-radius: var(--pd-radius);
}

:is(.pd, #pd-scope) .pd-cta__title {
	color: #fff;
}

:is(.pd, #pd-scope) .pd-cta__text {
	max-width: 680px;
	margin: 8px auto 0;
	color: #fff;
	opacity: .88;
}

:is(.pd, #pd-scope) .pd-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 22px;
}

:is(.pd, #pd-scope) .pd-cta .pd-btn--outline {
	color: var(--pd-brand);
	background: #fff;
	border-color: #fff;
}

/* =========================================================
 * 16. pd-related — links to similar products
 * ========================================================= */

:is(.pd, #pd-scope) .pd-related {
	padding: 30px 22px;
	background: var(--pd-surface-alt);
	border: 1px solid var(--pd-line);
	border-radius: var(--pd-radius-lg);
}

:is(.pd, #pd-scope) .pd-section + .pd-related,
:is(.pd, #pd-scope) .pd-related + .pd-section {
	margin-top: 26px;
}

:is(.pd, #pd-scope) .pd-related__head {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid transparent;
	border-image: var(--pd-grad) 1;
}

:is(.pd, #pd-scope) .pd-related__title {
	font-size: 22px;
}

:is(.pd, #pd-scope) .pd-related__text {
	margin-top: 8px;
	color: var(--pd-muted);
	font-size: 15px;
}

:is(.pd, #pd-scope) .pd-related__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

:is(.pd, #pd-scope) .pd-related__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
	padding: 16px;
	color: var(--pd-ink);
	background: var(--pd-surface);
	border: 1px solid var(--pd-line);
	border-radius: 16px;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

:is(.pd, #pd-scope) .pd-related__link:hover {
	transform: translateY(-3px);
	border-color: var(--pd-brand);
	box-shadow: var(--pd-shadow);
}

:is(.pd, #pd-scope) .pd-related__link:focus-visible {
	outline: 3px solid var(--pd-brand);
	outline-offset: 3px;
}

/* =========================================================
 * 17. pd-note — small muted line under a block
 * ========================================================= */

:is(.pd, #pd-scope) .pd-note {
	margin-top: 14px;
	color: var(--pd-muted);
	font-size: 15px;
}

/* =========================================================
 * 18. Responsive
 * ========================================================= */

@media (max-width: 960px) {
	:is(.pd, #pd-scope) .pd-grid--cols-3,
	:is(.pd, #pd-scope) .pd-grid--cols-4 {
		--pd-cols: 2;
	}

	:is(.pd, #pd-scope) .pd-steps--cols-3,
	:is(.pd, #pd-scope) .pd-list--cols-3 {
		--pd-cols: 2;
	}
}

@media (max-width: 760px) {
	:is(.pd, #pd-scope) .pd-section {
		padding: 44px 0;
	}

	:is(.pd, #pd-scope) .pd-section--tight {
		padding: 24px 0;
	}

	:is(.pd, #pd-scope) .pd-section--bare {
		padding: 0;
	}

	:is(.pd, #pd-scope) .pd-hero {
		padding: 42px 16px 36px;
	}

	:is(.pd, #pd-scope) .pd-hero__title {
		font-size: 24px;
	}

	:is(.pd, #pd-scope) .pd-grid--cols-2,
	:is(.pd, #pd-scope) .pd-steps,
	:is(.pd, #pd-scope) .pd-list--cols-2,
	:is(.pd, #pd-scope) .pd-list--cols-3 {
		--pd-cols: 1;
	}

	:is(.pd, #pd-scope) .pd-board__block {
		padding: 25px 22px;
	}

	:is(.pd, #pd-scope) .pd-plans {
		padding: 24px 18px 18px;
		border-right-width: 3px;
	}

	:is(.pd, #pd-scope) .pd-plans__item {
		padding: 16px 24px 16px 4px;
	}

	:is(.pd, #pd-scope) .pd-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	:is(.pd, #pd-scope) .pd-section__inner {
		padding: 0 10px;
	}

	:is(.pd, #pd-scope) .pd-grid--cols-3,
	:is(.pd, #pd-scope) .pd-grid--cols-4 {
		--pd-cols: 1;
	}

	:is(.pd, #pd-scope) .pd-card,
	:is(.pd, #pd-scope) .pd-callout--danger {
		padding: 20px;
	}

	:is(.pd, #pd-scope) .pd-card--feature {
		min-height: 0;
	}

	:is(.pd, #pd-scope) .pd-hero__actions,
	:is(.pd, #pd-scope) .pd-cta__actions {
		display: grid;
	}

	:is(.pd, #pd-scope) .pd-btn {
		width: 100%;
	}

	:is(.pd, #pd-scope) .pd-board__block {
		padding: 22px 17px;
	}

	:is(.pd, #pd-scope) .pd-list--numbered .pd-list__item {
		min-height: 0;
	}

	/* default table → stacked cards; label comes from data-title */
	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) {
		overflow: visible;
		background: transparent;
		border: 0;
	}

	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) .pd-table__table,
	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) tbody {
		display: grid;
		gap: 12px;
		min-width: 0;
	}

	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) thead {
		display: none;
	}

	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) tr {
		display: block;
		padding: 10px;
		background: var(--pd-surface);
		border: 1px solid var(--pd-line);
		border-radius: var(--pd-radius-sm);
	}

	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) tbody tr > * {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 9px 6px;
		text-align: left;
		background: var(--pd-surface);
		border-bottom: 1px dashed var(--pd-line);
	}

	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) tbody tr > :last-child {
		border-bottom: 0;
	}

	:is(.pd, #pd-scope) .pd-table:not(.pd-table--compact) td::before {
		content: attr(data-title);
		color: var(--pd-ink);
		font-weight: 800;
		text-align: right;
	}
}

@media (max-width: 420px) {
	:is(.pd, #pd-scope) .pd-related__grid {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
 * 19. EXTENSIONS — new blocks / modifiers go here
 *     Format:
 *       Comment line with name, page that uses it, date.
 *       :is(.pd, #pd-scope) .pd-newblock { … }
 * ========================================================= */
