/* Zamam page skin «article» (prototype top-pages-proto/article-fal-abjad-esm-madar, approved 20 Nov 2026) */
/* ===== Article template — «کتابخانه»: کاغذ گرم، چوب گردو، جوهر کهربایی؛ برای خواندن طولانی ===== */
html.zp--article { --zp-r: 20px; --zp-ease: cubic-bezier(.2,.7,.2,1);
  --zp-bg: #14100c; --zp-bg-2: #1d1711; --zp-ink: #f4ead8; --zp-muted: #d3c3a6; --zp-soft: #a39275; --zp-gold: #e9b866; --zp-gold-2: #c98f3a; --zp-gold-3: #ffe3b0; --zp-turq: #c2724f; --zp-violet: #c2724f;
  --zp-card: linear-gradient(165deg, rgba(60, 44, 28, .55), rgba(24, 18, 12, .7)); --zp-card-brd: rgba(233, 184, 102, .18); --zp-card-brd-hi: rgba(233, 184, 102, .5);
  --zp-shadow: 0 30px 70px -40px rgba(0,0,0,.85), 0 1px 0 rgba(255,240,210,.06) inset; --zp-glyph: rgba(233, 184, 102, .07);
  --zp-head: linear-gradient(100deg, #ffe3b0 0%, #e9b866 50%, #d98a5f 100%);
  --zp-btn: linear-gradient(120deg, #ffe3b0 0%, #e9b866 45%, #c2724f 100%); --zp-on-accent: #24160a; --ar-measure: 74ch; }
html.zp--article[data-theme="light"] { --zp-bg: #f7f0e1; --zp-bg-2: #efe5cf; --zp-ink: #2a2017; --zp-muted: #5a4a37; --zp-soft: #8a7860; --zp-gold: #9a5b12; --zp-gold-2: #7c4a10; --zp-turq: #a4462a; --zp-violet: #a4462a;
  --zp-card: linear-gradient(165deg, rgba(255, 252, 244, .97), rgba(246, 237, 216, .92)); --zp-card-brd: rgba(124, 74, 16, .16); --zp-card-brd-hi: rgba(154, 91, 18, .45);
  --zp-shadow: 0 24px 60px -40px rgba(90, 60, 20, .45), 0 1px 0 #fff inset; --zp-head: linear-gradient(100deg, #2a2017 0%, #7c4a10 55%, #a4462a 100%); --zp-btn: linear-gradient(120deg, #9a5b12, #a4462a); --zp-on-accent: #fff; }
html.zp--article body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(60% 50% at 85% 0%, rgba(233, 184, 102, .12), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(194, 114, 79, .1), transparent 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .7 0 0 0 0 .4 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ar-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 9999; pointer-events: none; } .ar-progress i { display: block; height: 100%; width: 0; background: var(--zp-btn); box-shadow: 0 0 12px var(--zp-gold); }
html.zp--article .article-single, html.zp--article main > section { position: relative; z-index: 1; }
html.zp--article .article-single__canvas { max-width: 1220px; padding-inline: clamp(16px, 4vw, 40px); }
/* hero */
html.zp--article .article-single__hero { position: relative; margin-top: 18px; padding: clamp(18px, 3vw, 34px); border-radius: 30px; border: 1px solid var(--zp-card-brd); background: var(--zp-card); box-shadow: var(--zp-shadow); overflow: hidden; isolation: isolate; }
html.zp--article .article-single__hero::before { content: ""; position: absolute; inset: 10px; border-radius: 22px; border: 1px solid var(--zp-card-brd); pointer-events: none; }
html.zp--article .article-single__hero::after { content: "ا ب ج د"; position: absolute; inset-inline-end: -10px; bottom: -40px; font-size: 9rem; font-weight: 900; color: var(--zp-glyph); z-index: -1; pointer-events: none; white-space: nowrap; }
html.zp--article .article-single__hero-grid { align-items: center; gap: clamp(18px, 3vw, 40px); }
html.zp--article .article-single__title { font-size: clamp(1.9rem, 4vw, 3rem) !important; line-height: 1.45; font-weight: 900; background: var(--zp-head); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
html.zp--article .article-single__cat { display: inline-flex; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--zp-card-brd-hi); color: var(--zp-gold) !important; background: rgba(233, 184, 102, .08); font-weight: 800; }
html.zp--article .article-hero-meta__item { border-radius: 999px; border: 1px solid var(--zp-card-brd); background: rgba(233, 184, 102, .06); color: var(--zp-muted); padding: .3rem .8rem; }
html.zp--article .article-single__cover-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--zp-card-brd-hi); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), 0 0 0 8px rgba(233, 184, 102, .06); transform: rotate(-1.2deg); transition: transform .6s var(--zp-ease); }
html.zp--article .article-single__cover-frame:hover { transform: rotate(0); }
html.zp--article .breadcrumb a, html.zp--article .breadcrumb span { color: var(--zp-soft); }
/* layout + toc */
html.zp--article .article-layout { gap: clamp(20px, 3vw, 44px); margin-top: clamp(20px, 3vw, 36px); }
html.zp--article .article-toc { position: sticky; top: calc(var(--header-h, 64px) + 18px); padding: 18px 16px; border-radius: 20px; border: 1px solid var(--zp-card-brd); background: var(--zp-card); box-shadow: var(--zp-shadow); backdrop-filter: blur(10px); }
html.zp--article .article-toc__title { color: var(--zp-gold) !important; font-weight: 900; }
html.zp--article .article-toc a { color: var(--zp-muted) !important; border-radius: 10px; }
html.zp--article .article-toc a.is-active { color: var(--zp-ink) !important; background: rgba(233, 184, 102, .12) !important; }
html.zp--article .article-toc a::before { background: var(--zp-gold) !important; }
.ar-left { margin-top: 12px; font-size: .78rem; color: var(--zp-soft); display: flex; justify-content: space-between; } .ar-bar { height: 4px; border-radius: 4px; background: rgba(233, 184, 102, .15); margin-top: 6px; overflow: hidden; } .ar-bar i { display: block; height: 100%; width: 0; background: var(--zp-btn); }
/* prose */
html.zp--article .article-single__prose { max-width: none; width: 100%; color: var(--zp-ink); }
/* desktop: TOC rail + content fill the whole canvas (no dead space); comfortable measure kept inside the cards */
@media (min-width: 960px) {
  html.zp--article .article-layout, html.zp--article .article-layout:has(.article-toc-wrap:not([hidden])) { grid-template-columns: clamp(200px, 21%, 270px) minmax(0, 1fr) !important; }
  html.zp--article .article-layout__main { min-width: 0; width: 100%; }
}
@media (min-width: 1600px) { html.zp--article .article-single__canvas { max-width: 1320px; } }
html.zp--article .za-sec > p, html.zp--article .za-lead > p { max-width: 78ch; }
html.zp--article .za { counter-reset: arh; font-size: 1.04rem; }
html.zp--article .za p, html.zp--article .za li { line-height: 2.15 !important; color: var(--zp-ink) !important; }
html.zp--article .za a { color: var(--zp-gold) !important; text-decoration: underline; text-decoration-color: rgba(233, 184, 102, .35); text-underline-offset: 5px; }
html.zp--article .za a:hover { text-decoration-color: var(--zp-gold); }
html.zp--article .za strong { color: var(--zp-gold-3); } html.zp--article[data-theme="light"] .za strong { color: #6b3a0c; }
html.zp--article .za h2 { counter-increment: arh; position: relative; margin-top: 2.4em !important; padding-top: 1em; font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important; font-weight: 900; color: var(--zp-ink) !important; display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--zp-card-brd); }
html.zp--article .za h2::before { content: counter(arh, persian); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 1.05rem; background: var(--zp-btn); color: var(--zp-on-accent); box-shadow: 0 10px 24px -10px rgba(233, 184, 102, .7); }
html.zp--article .za-lead { position: relative; border-radius: 22px !important; border: 1px solid var(--zp-card-brd-hi) !important; background: radial-gradient(120% 120% at 100% 0%, rgba(233, 184, 102, .14), transparent 60%), rgba(0,0,0,.08) !important; padding: clamp(16px, 3vw, 26px) !important; }
html.zp--article .za-lead p:first-of-type { font-size: 1.1rem; }
html.zp--article .za-lead__badge { border-radius: 999px !important; background: rgba(233, 184, 102, .12) !important; color: var(--zp-gold) !important; border: 1px solid var(--zp-card-brd-hi) !important; }
html.zp--article .za-table { border-radius: 16px; overflow: hidden; border: 1px solid var(--zp-card-brd) !important; }
html.zp--article .za-table th { background: rgba(233, 184, 102, .14) !important; color: var(--zp-ink) !important; }
html.zp--article .za-table td, html.zp--article .za-table th { border-color: var(--zp-card-brd) !important; color: var(--zp-ink) !important; }
html.zp--article .za-table tr:nth-child(even) td { background: rgba(233, 184, 102, .04); }
html.zp--article .za-step, html.zp--article .za-steps > li { border-radius: 16px !important; border: 1px solid var(--zp-card-brd) !important; background: rgba(233, 184, 102, .05) !important; }
html.zp--article .za-step__n { background: var(--zp-btn) !important; color: var(--zp-on-accent) !important; }
html.zp--article .za-cta, html.zp--article .jrn-box { border-radius: 22px !important; border: 1px solid var(--zp-card-brd-hi) !important; background: radial-gradient(100% 140% at 50% 0%, rgba(233, 184, 102, .16), transparent 70%), var(--zp-card) !important; box-shadow: var(--zp-shadow); color: var(--zp-ink); }
html.zp--article .za-cta h3, html.zp--article .jrn-box__title { color: var(--zp-ink) !important; font-weight: 900; }
html.zp--article .za-cta__btn, html.zp--article .btn-primary, html.zp--article .jrn-box button { background: var(--zp-btn) !important; color: var(--zp-on-accent) !important; border: 0 !important; font-weight: 800; border-radius: 14px !important; }
html.zp--article .jrn-box input, html.zp--article .jrn-box select { border-radius: 12px; border: 1px solid var(--zp-card-brd) !important; background: rgba(233, 184, 102, .06) !important; color: var(--zp-ink) !important; }
html.zp--article .za-faq__item, html.zp--article .za details { border-radius: 16px !important; border: 1px solid var(--zp-card-brd) !important; background: rgba(233, 184, 102, .04) !important; }
html.zp--article .article-single__tags a, html.zp--article .article-single__tags span { border-radius: 999px; border: 1px solid var(--zp-card-brd); color: var(--zp-muted); }
html.zp--article .post-card { border-radius: 20px !important; border: 1px solid var(--zp-card-brd) !important; background: var(--zp-card) !important; box-shadow: var(--zp-shadow); transition: transform .3s var(--zp-ease); }
html.zp--article .post-card:hover { transform: translateY(-4px); border-color: var(--zp-card-brd-hi) !important; }
html.zp--article .cta-band { border-radius: 28px !important; border: 1px solid var(--zp-card-brd-hi) !important; background: radial-gradient(60% 140% at 50% 0%, rgba(233, 184, 102, .2), transparent 70%), var(--zp-card) !important; }
html.zp--article .cta-band h2, html.zp--article .section__head h2 { background: var(--zp-head) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
/* inline calculator */
.ar-calc { margin: 1.6em 0; padding: clamp(16px, 3vw, 24px); border-radius: 22px; border: 1px solid var(--zp-card-brd-hi); background: repeating-linear-gradient(0deg, transparent 0 33px, rgba(233, 184, 102, .07) 33px 34px), var(--zp-card); box-shadow: var(--zp-shadow); }
.ar-calc__h { display: flex; gap: 10px; align-items: center; font-weight: 900; margin: 0 0 4px !important; }
.ar-calc__h b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--zp-btn); color: var(--zp-on-accent); }
.ar-calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ar-calc label { display: grid; gap: 6px; font-size: .85rem; color: var(--zp-muted); }
.ar-calc input { font: inherit; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--zp-card-brd); background: rgba(233, 184, 102, .06); color: var(--zp-ink); }
.ar-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 34px; margin-top: 6px; }
.ar-chips span { display: grid; justify-items: center; padding: 4px 7px; border-radius: 9px; background: rgba(233, 184, 102, .1); border: 1px solid var(--zp-card-brd); font-weight: 800; animation: arIn .35s var(--zp-ease) both; }
.ar-chips small { font-size: .65rem; color: var(--zp-gold); font-weight: 700; }
@keyframes arIn { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.ar-sum { display: flex; justify-content: space-between; margin-top: 4px; font-size: .9rem; color: var(--zp-soft); } .ar-sum b { color: var(--zp-gold); font-size: 1.05rem; }
.ar-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ar-res div { text-align: center; padding: 12px 8px; border-radius: 16px; border: 1px solid var(--zp-card-brd); background: rgba(0,0,0,.08); }
.ar-res small { display: block; font-size: .72rem; color: var(--zp-soft); } .ar-res b { display: block; font-size: 1.35rem; font-weight: 900; color: var(--zp-ink); margin-top: 2px; }
.ar-res div:last-child { border-color: var(--zp-card-brd-hi); background: radial-gradient(circle at 50% 0%, rgba(233, 184, 102, .2), transparent 70%); }
.ar-note { margin: 10px 0 0 !important; font-size: .82rem; color: var(--zp-soft) !important; }
@media (max-width: 640px) { .ar-calc__grid { grid-template-columns: 1fr; } html.zp--article .article-single__prose { padding: 18px 16px; border-radius: 20px; } html.zp--article .article-single__hero::after { font-size: 5rem; } }

html.zp--article .za { --za-accent: var(--zp-gold); --za-teal: var(--zp-turq); --za-gold: var(--zp-gold); --za-surface: var(--zp-card); --za-border: var(--zp-card-brd); --za-primary: var(--zp-gold); --za-text-main: var(--zp-ink); --za-text-muted: var(--zp-muted); --za-bg-card: transparent; --za-bg-card-alt: transparent; counter-reset: arh; }
html.zp--article .article-single__hero-grid { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.zp--article .article-single__cover-frame { background: none !important; padding: 0 !important; }
html.zp--article .article-toc-wrap { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.zp--article .za-sec { border-radius: 24px !important; border: 1px solid var(--zp-card-brd) !important; background: var(--zp-card) !important; box-shadow: var(--zp-shadow) !important; padding: clamp(18px, 3vw, 32px) !important; }
html.zp--article .za-sec h2 { margin-top: 0 !important; padding-top: 0; border-top: 0; padding-bottom: .6em; border-bottom: 1px dashed var(--zp-card-brd); }
html.zp--article .za-card { border-radius: 18px !important; border: 1px solid var(--zp-card-brd) !important; background: rgba(233, 184, 102, .05) !important; }
html.zp--article .za-card__title, html.zp--article .za h3 { color: var(--zp-ink) !important; }
html.zp--article .za-card__icon { filter: sepia(.6) saturate(1.3); }
html.zp--article .article-toc a::before { width: 6px !important; height: 6px !important; border-radius: 50% !important; opacity: .6; }
html.zp--article .jrn-box { margin: 14px 0; padding: 16px; }
html.zp--article .jrn-box__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html.zp--article .jrn-box__title { flex-basis: 100%; margin: 0 0 4px; }
html.zp--article .jrn-box__form input, html.zp--article .jrn-box__form select { flex: 1 1 140px; min-height: 46px; padding: 0 12px; font: inherit; }
html.zp--article .jrn-box__form button { flex: 1 1 100%; min-height: 48px; font: inherit; cursor: pointer; }
@media (min-width: 720px) { html.zp--article .jrn-box__form button { flex: 0 0 auto; padding-inline: 1.4rem; } }
html.zp--article[data-theme] .jrn-box .btn.btn-primary, html.zp--article[data-theme] .za-cta .za-cta__btn, html.zp--article[data-theme] .cta-band .btn-primary { background: var(--zp-btn) !important; color: var(--zp-on-accent) !important; }
html.zp--article[data-theme="light"] .za-lead { background: radial-gradient(120% 120% at 100% 0%, rgba(154, 91, 18, .10), transparent 60%), #fffaf0 !important; }
html.zp--article .za-table, html.zp--article .za-table table, html.zp--article .za-table tbody, html.zp--article .za-table tr, html.zp--article .za-table td { background-color: transparent !important; }
html.zp--article .za-table tr:nth-child(even) td { background-color: rgba(233, 184, 102, .05) !important; }
html.zp--article .article-toc a::before { display: none !important; }
html.zp--article .article-toc a { padding-inline-start: 12px !important; border-inline-start: 2px solid transparent; }
html.zp--article .article-toc a.is-active { border-inline-start-color: var(--zp-gold); }
@media (max-width: 640px) { html.zp--article .za-sec { padding: 18px 14px !important; border-radius: 20px !important; } html.zp--article .za-table { font-size: .85rem; } }

/* ---- production additions ---- */
/* jrn-box (article tool form): article pages do not load tool-hero-banner.css unless the journey flag is on */
html.zp--article .jrn-box { border-radius: 20px; padding: 18px 20px; margin: 22px 0; border: 1px solid var(--zp-card-brd-hi); background: var(--zp-card); box-shadow: var(--zp-shadow); }
html.zp--article .jrn-box input, html.zp--article .jrn-box select, html.zp--article .jrn-box textarea { width: 100%; border-radius: 12px; padding: .65rem .8rem; border: 1px solid var(--zp-card-brd); background: color-mix(in srgb, var(--zp-bg) 55%, transparent); color: var(--zp-ink); font: inherit; }
html.zp--article .jrn-box button, html.zp--article .jrn-box [type=submit] { border: 0; border-radius: 999px; padding: .7rem 1.3rem; font-weight: 800; background: var(--zp-btn); color: var(--zp-on-accent, #1a1033); cursor: pointer; }
html.zp--article[data-theme="light"] .jrn-box button, html.zp--article[data-theme="light"] .jrn-box [type=submit] { background: var(--zp-btn-light, var(--zp-btn)); color: #fff; }
html.zp--article .jrn-box__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
html.zp--article .jrn-box__title { flex-basis: 100%; margin: 0 0 2px; font-weight: 800; color: var(--zp-ink); }
html.zp--article .jrn-box__form input, html.zp--article .jrn-box__form select { flex: 1 1 140px; min-height: 46px; }
html.zp--article .jrn-box__form .btn, html.zp--article .jrn-box__form button { flex: 1 1 100%; min-height: 48px; }
