/* Blog / article styles — شبایار */
.article-hero {
  padding: 8rem 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(30, 111, 232, 0.16), transparent 55%),
    linear-gradient(180deg, var(--sky-top), var(--white));
}

.article-hero .container {
  max-width: 820px;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
}

.article-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.8vw, 2.55rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.article-cover {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(10, 39, 79, 0.12);
  background: var(--sky-top);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  padding: 3rem 0 5rem;
}

.article-body .container {
  max-width: 820px;
}

.article-toc {
  margin: 0 0 2.75rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(165deg, #f8fbff, #eef4fb);
}

.article-toc h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--blue-deep);
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.article-toc a::before {
  content: counter(toc, decimal);
  display: inline-flex;
  min-width: 1.5rem;
  color: var(--blue);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.article-toc a:hover {
  color: var(--blue-dark);
}

.article-body h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.4;
  scroll-margin-top: 1.5rem;
}

.article-body h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  scroll-margin-top: 1.5rem;
}

.article-body h4 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.article-body p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.35rem;
  color: var(--muted);
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body li {
  line-height: 1.8;
}

.article-body strong {
  color: var(--ink);
  font-weight: 700;
}

.article-body a {
  font-weight: 600;
}

.article-body hr {
  border: 0;
  height: 1px;
  margin: 2.75rem 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.callout {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.callout--info {
  border-color: #c5d8f5;
  background: linear-gradient(165deg, #f4f8ff, #eaf2fc);
}

.callout--warn {
  border-color: #e8d7b0;
  background: linear-gradient(165deg, #fffbf2, #f8f1e2);
}

.callout--success {
  border-color: #b9dfc8;
  background: linear-gradient(165deg, #f3fbf6, #e7f5ec);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-title {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.95rem;
}

.sheba-anatomy {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(30, 111, 232, 0.12), transparent 55%),
    #0a274f;
  color: #fff;
  overflow: hidden;
}

.sheba-anatomy-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  direction: ltr;
  justify-content: center;
}

.sheba-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 3.2rem;
  padding: 0.75rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sheba-part code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sheba-part span {
  font-size: 0.72rem;
  opacity: 0.8;
  text-align: center;
  line-height: 1.35;
  font-family: var(--font);
}

.sheba-part--ir { background: rgba(30, 111, 232, 0.45); }
.sheba-part--cc { background: rgba(72, 167, 255, 0.28); }
.sheba-part--bbb { background: rgba(255, 255, 255, 0.14); }
.sheba-part--a { background: rgba(120, 210, 180, 0.28); }
.sheba-part--acc {
  flex: 1 1 12rem;
  background: rgba(255, 255, 255, 0.1);
}

.sheba-anatomy-sum {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  font-family: var(--font);
}

.code-block {
  margin: 1.15rem 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #0f1f36;
  color: #d7e6ff;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.table-wrap {
  margin: 1.25rem 0 1.75rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.95rem;
}

.article-table th,
.article-table td {
  padding: 0.9rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-table th {
  background: var(--surface);
  color: var(--blue-deep);
  font-weight: 800;
  white-space: nowrap;
}

.article-table tr:last-child th,
.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table td {
  color: var(--muted);
}

.article-table td strong,
.article-table td b {
  color: var(--ink);
}

.article-table .mono {
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}

.compare-card {
  padding: 1.25rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.compare-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--blue-deep);
}

.compare-card p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.compare-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.compare-card li strong {
  color: var(--ink);
  font-weight: 700;
}

.compare-card--paya { border-top: 3px solid #1e6fe8; }
.compare-card--satna { border-top: 3px solid #0a274f; }
.compare-card--pol { border-top: 3px solid #2f9e6b; }

.amount-guide {
  display: grid;
  gap: 0.85rem;
  margin: 1.35rem 0 1.75rem;
}

.amount-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--white);
}

.amount-range {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.35;
}

.amount-item p {
  margin: 0;
  font-size: 0.98rem;
}

.check-list {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 0.85rem;
  padding-inline-start: 2.4rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid transparent;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 0.55rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.85rem;
  top: 0.95rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.article-cta {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(30, 111, 232, 0.25), transparent 55%),
    linear-gradient(135deg, var(--blue-deep), #123a6e 50%, var(--blue-dark));
  color: #fff;
  text-align: center;
}

.article-cta h2 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: 1.35rem;
}

.article-cta p {
  margin: 0 auto 1.25rem;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.85);
}

.article-cta .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: none;
}

.article-cta .btn-primary:hover {
  background: var(--blue-soft);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.article-cta .btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0 0 5rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  color: inherit;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

.blog-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-card-meta {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .amount-item {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sheba-part {
    min-width: 2.8rem;
    padding: 0.6rem 0.4rem;
  }

  .sheba-part code {
    font-size: 0.8rem;
  }
}


/* SHEBA validate widget */
.sheba-validate-box {
  margin: 1.5rem 0 2rem;
  padding: 1.35rem 1.35rem 1.2rem;
  border-radius: 20px;
  border: 1px solid #c5d8f5;
  background: linear-gradient(165deg, #f4f8ff, #eaf2fc);
}
.sheba-validate-box h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--blue-deep);
}
.sheba-validate-box > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.sheba-validate-box label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.sheba-validate-box .input-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sheba-validate-box input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  direction: ltr;
  text-align: left;
  background: #fff;
}
.sheba-validate-box input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 111, 232, 0.12);
}
.sheba-validate-result {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}
.sheba-validate-result.is-visible { display: block; }
.sheba-validate-result.is-ok { border-color: #b9dfc8; background: #f3fbf6; }
.sheba-validate-result.is-bad { border-color: #e8c4c4; background: #fff6f6; }
.sheba-validate-result p { margin: 0 0 0.55rem; color: var(--ink); font-size: 0.95rem; }
.sheba-validate-result p:last-child { margin-bottom: 0; }
.sheba-validate-result .mono {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.sheba-validate-result .note { color: var(--muted); font-size: 0.88rem; }
.check-grid {
  display: grid;
  gap: 0.55rem;
  margin: 1.15rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.check-grid li {
  padding: 0.75rem 0.95rem 0.75rem 2.4rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  position: relative;
}
.check-grid li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 0.75rem;
  color: var(--blue);
  font-weight: 800;
}


/* Card number anatomy (reuses .sheba-anatomy shell) */
.card-part--bin { background: rgba(30, 111, 232, 0.5); flex: 1 1 7rem; }
.card-part--mid { background: rgba(255, 255, 255, 0.12); flex: 1 1 9rem; }
.card-part--chk { background: rgba(120, 210, 180, 0.35); min-width: 4.5rem; }
