/* قالب جزوه وبلاگ بفرما AI
   هر مقاله این استایل را می‌گیرد. در ادیتور می‌توانید از کلاس‌های
   jz-lead, jz-tip, jz-box, jz-mark, jz-summary, jz-checks هم استفاده کنید.
   اگر فقط تیتر و پاراگراف معمولی بنویسید هم ظاهر جزوه‌ای می‌ماند.
*/
@font-face {
  font-family: 'Gandom';
  src: url('/static/fonts/gandom/Gandom-FD.woff2') format('woff2'),
       url('/static/fonts/gandom/Gandom-FD.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.jz-page {
  --jz-ink: #2b2a32;
  --jz-muted: #5d5a6a;
  --jz-orange: #e07a32;
  --jz-purple: #6f63c7;
  --jz-green: #3f9a62;
  --jz-blue: #4d8ed6;
  --jz-yellow: #ffe56a;
  --jz-paper: #fffdf8;
  --jz-line: #ece6d8;
  background:
    radial-gradient(1200px 500px at 100% -10%, #f3eefc 0%, transparent 50%),
    linear-gradient(180deg, #f7f4ee 0%, #fbfaf6 40%, #f7f4ee 100%);
  padding: 1.2rem 0 3rem;
  color: var(--jz-ink);
}
.jz-page,
.jz-page * {
  font-family: Gandom, IRANYekanXFaNum, Tahoma, sans-serif;
}

.jz-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
}

.jz-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: .95rem;
  color: var(--jz-muted);
}
.jz-crumb a {
  color: var(--jz-purple) !important;
  text-decoration: none !important;
}
.jz-crumb a:hover { text-decoration: underline !important; }

.jz-sheet {
  position: relative;
  background: var(--jz-paper);
  border-radius: 18px 22px 16px 20px / 20px 16px 22px 18px;
  padding: 1.6rem 1.35rem 2.2rem;
  box-shadow:
    0 1px 0 #fff inset,
    0 18px 40px rgba(80, 60, 30, .08);
  overflow: hidden;
}
.jz-sheet::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(111, 99, 199, .18);
  border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px;
  pointer-events: none;
}
.jz-sheet > * { position: relative; z-index: 1; }

.jz-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  align-items: center;
  margin: 0 0 .7rem;
  color: var(--jz-muted);
  font-size: 1rem;
}
.jz-kicker b {
  color: var(--jz-orange);
  font-weight: normal;
}

.jz-title {
  margin: 0 0 .85rem;
  text-align: center;
  font-size: clamp(1.85rem, 5vw, 3rem);
  line-height: 1.45;
  color: var(--jz-orange);
  font-weight: normal;
}
.jz-title .jz-en {
  display: block;
  letter-spacing: .02em;
}

.jz-lead,
.jz-body .jz-lead,
.jz-body blockquote {
  margin: 0 auto 1.4rem;
  max-width: 42rem;
  padding: .85rem 1.15rem;
  color: var(--jz-purple);
  text-align: center;
  line-height: 2.05;
  font-size: 1.12rem;
  background: #f4f1ff;
  border: 2.5px solid var(--jz-purple);
  border-radius: 999px;
  box-shadow: 2px 3px 0 rgba(111, 99, 199, .12);
}
.jz-body blockquote {
  border-radius: 1.4rem 1.8rem 1.2rem 1.6rem / 1.6rem 1.2rem 1.8rem 1.4rem;
  text-align: right;
  quotes: none;
}
.jz-body blockquote p { margin: 0; color: inherit; }

.jz-body {
  font-size: 1.12rem;
  line-height: 2.15;
  color: var(--jz-ink);
}
.jz-body > *:first-child { margin-top: 0; }
.jz-body p { margin: 0 0 1rem; }
.jz-body a {
  color: var(--jz-blue) !important;
  text-decoration: underline wavy;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.jz-body h2,
.jz-body h3 {
  font-weight: normal;
  line-height: 1.7;
  margin: 1.7rem 0 .7rem;
  display: inline-block;
}
.jz-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--jz-orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5 Q40 1 80 5 T160 4 T198 5' fill='none' stroke='%23ffe56a' stroke-width='5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 10px;
  padding: 0 .15rem .12rem;
}
.jz-body h3 {
  font-size: 1.22rem;
  color: var(--jz-purple);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M1 6 Q50 2 100 5 T199 4' fill='none' stroke='%237d9ee8' stroke-width='3' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 8px;
}

.jz-body strong,
.jz-mark {
  font-weight: normal;
  background: linear-gradient(transparent 55%, var(--jz-yellow) 55%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .12rem;
}
.jz-body em { color: var(--jz-purple); font-style: normal; }

.jz-body ul,
.jz-body ol,
.jz-checks {
  margin: .4rem 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}
.jz-body ul li,
.jz-checks li {
  position: relative;
  padding: .15rem 2.1rem .15rem 0;
}
.jz-body ul li::before,
.jz-checks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .42rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--jz-green);
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5 L6.5 12 L13 4' fill='none' stroke='%233f9a62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    center/12px no-repeat;
}
.jz-body ol { counter-reset: jz; }
.jz-body ol li {
  position: relative;
  padding: .1rem 2.2rem .1rem 0;
  counter-increment: jz;
}
.jz-body ol li::before {
  content: counter(jz);
  position: absolute;
  right: 0;
  top: .15rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px dashed var(--jz-orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--jz-orange);
  font-size: .9rem;
  line-height: 1;
}

.jz-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  padding: 7px;
  background: #fff;
  border: 2.5px solid #3a3648;
  border-radius: 14px 18px 12px 16px / 16px 12px 18px 14px;
  box-shadow: 4px 5px 0 rgba(58, 54, 72, .08);
}
.jz-body pre,
.jz-body .jz-code {
  margin: .8rem 0 1.2rem;
  padding: .9rem 1rem;
  background: #f7f4ff;
  border: 2.5px solid var(--jz-purple);
  border-radius: 12px 16px 10px 14px / 14px 10px 16px 12px;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-size: .95rem;
  line-height: 1.7;
  color: #3b3358;
  font-family: Consolas, "Courier New", monospace !important;
}
.jz-body code {
  font-family: Consolas, "Courier New", monospace !important;
  background: #fff3d1;
  padding: .05rem .35rem;
  border-radius: .4rem;
  color: #9a4b12;
}
.jz-body pre code { background: none; color: inherit; padding: 0; }

.jz-body hr {
  border: 0;
  height: 18px;
  margin: 1.4rem 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 18' preserveAspectRatio='none'><path d='M2 10 C40 2 70 16 110 9 S180 3 220 11 S300 4 398 10' fill='none' stroke='%236f63c7' stroke-width='2' stroke-linecap='round'/></svg>") center/100% 18px no-repeat;
}

.jz-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1rem 0 1.4rem;
  overflow: hidden;
  border: 2.5px solid var(--jz-blue);
  border-radius: 14px;
}
.jz-body th,
.jz-body td {
  padding: .55rem .75rem;
  border-bottom: 1.5px dashed #d7e6f8;
  text-align: right;
}
.jz-body th { background: #eef5ff; color: var(--jz-blue); }
.jz-body tr:last-child td { border-bottom: 0; }

.jz-tip,
.jz-box,
.jz-summary {
  margin: 1.1rem 0;
  padding: 1rem 1.15rem .95rem;
  background: #fff;
  border: 2.5px solid var(--jz-purple);
  border-radius: 1.3rem 1.7rem 1.15rem 1.55rem / 1.55rem 1.15rem 1.7rem 1.3rem;
}
.jz-tip {
  border-color: var(--jz-orange);
  background: #fff7ef;
  position: relative;
  padding-right: 3rem;
}
.jz-tip::before {
  content: "✦";
  position: absolute;
  right: .85rem;
  top: .7rem;
  color: var(--jz-orange);
  font-size: 1.3rem;
}
.jz-summary {
  border-style: dashed;
  border-color: #c9a227;
  background: #fffceb;
  text-align: center;
  font-size: 1.12rem;
  color: #6a5310;
}
.jz-summary::before {
  content: "★ ";
  color: #e0b125;
}

.jz-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 1rem;
  align-items: start;
  margin: 1.2rem 0 1.5rem;
}
.jz-card {
  background: #fff;
  border: 2.5px solid var(--jz-purple);
  border-radius: 1.4rem 1.8rem 1.2rem 1.6rem / 1.6rem 1.2rem 1.8rem 1.4rem;
  padding: 1rem 1rem .85rem;
}
.jz-card h3 { margin: 0 0 .55rem; }
.jz-logo-spark {
  display: flex;
  justify-content: center;
  margin: .35rem 0 .6rem;
}

.jz-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .7rem;
  justify-items: center;
  text-align: center;
}
.jz-hub-core {
  grid-column: 1 / -1;
  width: 132px;
  height: 148px;
  margin: .15rem 0;
  background: #fff;
  border: 2.5px solid #3a3648;
  border-radius: 10px 14px 9px 12px;
  box-shadow: 5px 6px 0 rgba(58,54,72,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  position: relative;
}
.jz-hub-core span {
  font-size: .95rem;
  color: var(--jz-orange);
  direction: ltr;
}
.jz-hub-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  font-size: .95rem;
  color: var(--jz-ink);
}
.jz-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2.5px solid currentColor;
  background: #fff;
  font-size: 1.25rem;
}
.jz-c-orange { color: var(--jz-orange); }
.jz-c-purple { color: var(--jz-purple); }
.jz-c-green { color: var(--jz-green); }
.jz-c-blue { color: var(--jz-blue); }

.jz-nb {
  margin: 1rem 0 1.4rem;
  background: #fff;
  border: 2.5px solid #3a3648;
  border-radius: 12px 16px 10px 14px / 14px 10px 16px 12px;
  overflow: hidden;
  box-shadow: 5px 6px 0 rgba(58,54,72,.06);
}
.jz-nb-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .7rem;
  padding: .45rem .8rem;
  background: #f3f0ea;
  border-bottom: 2px solid #ece6d8;
  font-size: .82rem;
  color: #5a5666;
  direction: ltr;
  justify-content: flex-start;
}
.jz-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem;
  padding: .7rem .85rem;
  border-bottom: 1.5px dashed #ece6d8;
  align-items: start;
}
.jz-cell:last-child { border-bottom: 0; }
.jz-in {
  color: var(--jz-blue);
  font-size: .82rem;
  direction: ltr;
  padding-top: .15rem;
  white-space: nowrap;
}
.jz-cell pre {
  margin: 0;
  border: 0;
  background: #fbf8ff;
  padding: .55rem .7rem;
  font-size: .86rem;
}
.jz-md-text { color: var(--jz-muted); }

.jz-apps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .7rem;
  margin: .8rem 0 1.2rem;
  text-align: center;
}
.jz-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  font-size: .92rem;
  color: var(--jz-ink);
}
.jz-app i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2.5px solid currentColor;
  font-style: normal;
  font-size: 1.35rem;
  background: #fff;
}

.jz-related {
  margin-top: 1.6rem;
}
.jz-related h2 {
  margin: 0 0 .8rem;
  color: var(--jz-purple);
  font-size: 1.3rem;
  font-weight: normal;
}
.jz-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.jz-mini {
  display: flex;
  flex-direction: column;
  background: var(--jz-paper);
  border: 2.5px solid #d9d1f0;
  border-radius: 1.15rem 1.4rem 1rem 1.25rem / 1.25rem 1rem 1.4rem 1.15rem;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--jz-ink) !important;
  min-height: 100%;
}
.jz-mini img { width: 100%; height: 110px; object-fit: cover; display: block; }
.jz-mini span { padding: .7rem .8rem .9rem; line-height: 1.7; }

.jz-list {
  display: grid;
  gap: 1rem;
}
.jz-post {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
  background: var(--jz-paper);
  border: 2.5px solid #d9d1f0;
  border-radius: 1.3rem 1.6rem 1.1rem 1.45rem / 1.45rem 1.1rem 1.6rem 1.3rem;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 10px 24px rgba(80,60,30,.06);
}
.jz-post img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; display: block; }
.jz-post-body { padding: 1rem 1rem 1.05rem 0; }
.jz-post h2 {
  margin: .2rem 0 .45rem;
  font-size: 1.35rem;
  color: var(--jz-orange);
  font-weight: normal;
  line-height: 1.7;
}
.jz-post p { margin: 0; color: var(--jz-muted); line-height: 1.95; }
.jz-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--jz-muted);
}

.jz-pager {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.2rem;
}
.jz-pager a,
.jz-pager span {
  min-width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--jz-purple);
  border-radius: 999px;
  color: var(--jz-purple) !important;
  text-decoration: none !important;
}
.jz-pager .is-on { background: var(--jz-purple); color: #fff !important; }

@media (max-width: 860px) {
  .jz-split,
  .jz-apps,
  .jz-related-grid { grid-template-columns: 1fr 1fr; }
  .jz-apps { grid-template-columns: repeat(3, 1fr); }
  .jz-post { grid-template-columns: 1fr; }
  .jz-post img { height: 170px; }
}
@media (max-width: 640px) {
  .jz-sheet { padding: 1.15rem .9rem 1.6rem; }
  .jz-split,
  .jz-related-grid,
  .jz-apps { grid-template-columns: 1fr; }
  .jz-apps { grid-template-columns: 1fr 1fr; }
  .jz-lead, .jz-body .jz-lead, .jz-body blockquote { border-radius: 1.4rem; }
  .jz-body { font-size: 1.05rem; }
}
