/* صفحه‌های عمومی درباره و تماس — پالت برند سرمه‌ای / سفید / خردلی */

.np-mkt {
  /*
   * پوستهٔ بازاریابی همیشه روشن می‌ماند حتی وقتی html[data-theme-mode=dark]
   * توکن‌های داشبورد را تیره کرده است. بدون این بازنویسی، کارت‌های
   * .np-card / .rp-hero با سطح تیره و متن سرمه‌ای ارثی (از .np-mkt و
   * .np-land a { color: inherit }) نسبت کنتراست ~1:1 می‌گیرند.
   */
  --np-color-canvas: #F7F9FC;
  --np-color-surface: #ffffff;
  --np-color-surface-2: #f3f6fc;
  --np-color-bg: #eef2f8;
  --np-color-border: color-mix(in srgb, #0D1B3D 18%, #d5deee);
  --np-color-text: #0D1B3D;
  --np-color-muted: #3a4f6b;
  --np-color-chip: color-mix(in srgb, #0D1B3D 8%, #e8eef8);
  --np-shadow: 0 10px 28px rgba(13, 27, 61, 0.08);
  --np-shadow-sm: 0 2px 8px rgba(13, 27, 61, 0.06);
  --mkt-navy: #0D1B3D;
  --mkt-navy-soft: #16325c;
  --mkt-gold: var(--np-color-gold, #C99A2E);
  --mkt-gold-soft: #e7c56a;
  --mkt-canvas: #F7F9FC;
  --mkt-white: #ffffff;
  background: var(--mkt-canvas);
  color: var(--mkt-navy);
  min-height: 100vh;
}

/* لینک‌های ناوبری مرکز توسعه‌دهنده داخل پوستهٔ بازاریابی — نه inherit از .np-land a */
.np-mkt .np-dev-nav a {
  color: var(--np-color-text);
  background: var(--np-color-surface);
  border-color: var(--np-color-border);
}

.np-mkt .np-dev-nav a:hover,
.np-mkt .np-dev-nav a:focus-visible {
  color: #6b4e0e;
  border-color: var(--mkt-gold);
  outline: none;
}

.np-mkt .np-dev .rp-hero-kicker {
  color: #6b4e0e;
}

.np-mkt .np-dev .rp-hero-lead,
.np-mkt .np-dev .np-mkt-note,
.np-mkt .np-dev .np-docs-consult-link {
  color: var(--np-color-muted);
}

.np-mkt .np-dev .np-docs-consult-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.np-mkt .np-dev .np-page-title,
.np-mkt .np-dev table,
.np-mkt .np-dev td,
.np-mkt .np-dev th,
.np-mkt .np-dev p {
  color: var(--np-color-text);
}

.np-mkt .np-dev table th {
  font-weight: 700;
  border-bottom: 1px solid var(--np-color-border);
}

.np-mkt .np-dev td {
  border-bottom-color: var(--np-color-border);
}

.np-mkt-main {
  padding-bottom: 2.5rem;
}

.np-mkt-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.np-mkt-page {
  padding-top: 1.25rem;
}

.np-mkt-hero {
  padding-block: 1.5rem 0.75rem;
}

.np-mkt-hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.np-mkt-logo {
  display: block;
  width: 86px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center;
}

.np-mkt-kicker {
  margin: 0;
  color: var(--mkt-navy-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.np-mkt-h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mkt-navy);
}

.np-mkt-h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--mkt-navy);
}

.np-mkt-h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--mkt-navy);
}

.np-mkt-lead,
.np-mkt-section p {
  margin: 0 0 0.85rem;
  line-height: 1.85;
  color: #243B5A;
}

.np-mkt-section {
  padding-block: 0.75rem 1.25rem;
}

.np-mkt-benefits {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.np-mkt-benefits li {
  background: var(--mkt-white);
  border: 1px solid rgba(11, 35, 66, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(11, 35, 66, 0.04);
}

.np-mkt-note {
  font-size: 0.92rem;
  color: #3a4f6b;
  border-inline-start: 3px solid var(--mkt-gold);
  padding-inline-start: 0.75rem;
}

.np-mkt-related .np-mkt-card,
.np-mkt-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--mkt-white);
  border: 1px solid rgba(11, 35, 66, 0.1);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 28px rgba(11, 35, 66, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.np-mkt-related .np-mkt-card:hover,
.np-mkt-related .np-mkt-card:focus-visible {
  border-color: var(--mkt-gold);
  transform: translateY(-1px);
  outline: none;
}

.np-mkt-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--mkt-navy);
}

.np-mkt-card span,
.np-mkt-card-static p {
  color: #3a4f6b;
  line-height: 1.7;
}

.np-mkt-card-static {
  cursor: default;
}

.np-mkt-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.5rem;
  padding: 1.25rem 0 2rem;
}

.np-mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--mkt-gold);
  color: var(--mkt-navy);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.np-mkt-btn:hover,
.np-mkt-btn:focus-visible {
  background: var(--mkt-gold-soft);
  outline: 2px solid var(--mkt-navy);
  outline-offset: 2px;
}

.np-mkt-btn-line {
  background: transparent;
  border-color: var(--mkt-navy);
  color: var(--mkt-navy);
}

.np-mkt-btn-line:hover,
.np-mkt-btn-line:focus-visible {
  background: rgba(11, 35, 66, 0.04);
}

.np-mkt-tel {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mkt-navy);
  text-decoration: none;
}

.np-mkt-tel:hover,
.np-mkt-tel:focus-visible {
  color: var(--mkt-gold);
  outline: none;
  text-decoration: underline;
}

.np-mkt-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.np-mkt-card-wide {
  grid-column: 1 / -1;
}

.np-mkt-map-card {
  background: linear-gradient(160deg, #f4f7fb, #fff 45%, #fbf6ea);
  border: 1px solid rgba(11, 35, 66, 0.1);
  border-radius: 18px;
  padding: 1.25rem;
}

.np-mkt-map-address {
  font-weight: 700;
  color: var(--mkt-navy);
}

.np-mkt-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.np-mkt-map-embed {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #e8eef5;
}

.np-mkt-contact-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.np-mkt-form-row {
  display: grid;
  gap: 0.35rem;
}

.np-mkt-form-row.np-mkt-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.np-mkt-input {
  border: 1px solid rgba(11, 35, 66, 0.18);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.np-mkt-form-status {
  font-weight: 700;
  color: var(--mkt-navy);
}

.np-mkt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* تصویر + تابلوی دیواری HTML */
.np-mkt-photo {
  margin: 0 0 1.25rem;
}

.np-mkt-photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #d9e0ea;
  box-shadow: 0 16px 40px rgba(11, 35, 66, 0.12);
}

.np-mkt-photo-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.np-mkt-plaque {
  margin: 0;
  pointer-events: none;
}

.np-mkt-plaque-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(100%, 16rem);
  padding: 0.55rem 0.8rem;
  background: #fff;
  color: var(--mkt-navy);
  border: 1px solid rgba(11, 35, 66, 0.12);
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(201, 154, 46, 0.55) inset,
    0 10px 24px rgba(11, 35, 66, 0.18);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.8vw, 0.95rem);
  line-height: 1.45;
  pointer-events: auto;
}

.np-mkt-plaque-mark {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 1.55rem;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mkt-gold-soft), var(--mkt-gold) 55%, #a67c1f);
  box-shadow: inset 0 0 0 1px rgba(11, 35, 66, 0.15);
}

.np-mkt-plaque-text {
  user-select: text;
}

/* محل تابلو روی دیوار روشن سمت راست عکس دفتر */
.np-mkt-photo-office .np-mkt-plaque {
  position: absolute;
  top: 10%;
  inset-inline-end: 6%;
  transform: perspective(900px) rotateY(-4deg);
}

/* محل تابلو روی دیوار خالی عکس تیم */
.np-mkt-photo-team .np-mkt-plaque {
  position: absolute;
  top: 8%;
  inset-inline-start: 18%;
  transform: perspective(900px) rotateY(2deg);
}

/* فوتر عمومی وقتی روی صفحات بازاریابی وصل است */
.np-mkt .np-home-footer {
  margin-top: 1rem;
  background: var(--mkt-navy);
  color: #f4f7fb;
  padding-top: 1.75rem;
}

.np-mkt .np-home-footer-grid {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 1.1rem;
}

.np-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* دروازه‌های حسابداری / حضور روی هاب یکپارچه‌سازی */
.np-docs-gateways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: 0.5rem 1.25rem;
}

.np-docs-gateway {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--mkt-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(11, 35, 66, 0.06);
}

.np-docs-gateway-acc {
  border: 2px solid rgba(201, 154, 46, 0.55);
  border-inline-start: 6px solid var(--mkt-gold);
}

.np-docs-gateway-att {
  --att-accent: #0e7490;
  border: 2px solid rgba(14, 116, 144, 0.35);
  border-inline-start: 6px solid var(--att-accent);
}

.np-docs-gateway-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e8eef5, #f7f9fc 55%, #f3efe3);
  overflow: hidden;
}

.np-docs-gateway-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-docs-gateway-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.np-docs-gateway-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.np-docs-gateway-acc .np-docs-gateway-eyebrow {
  color: #6b4e0e;
}

.np-docs-gateway-att .np-docs-gateway-eyebrow {
  color: #0a5c72;
}

.np-docs-gateway-title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--mkt-navy);
}

.np-docs-gateway-lead {
  margin: 0 0 0.9rem;
  line-height: 1.75;
  color: #3a4f6b;
  font-size: 0.95rem;
}

.np-docs-gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}

.np-docs-gateway-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.np-docs-gateway-links a {
  color: #6b4e0e;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.np-docs-gateway-att .np-docs-gateway-links a {
  color: #0a5c72;
}

.np-docs-gateway-links a:hover,
.np-docs-gateway-links a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.np-docs-att-detail {
  border-top: 1px solid rgba(11, 35, 66, 0.08);
  margin-top: 0.25rem;
}

.np-docs-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: #3a4f6b;
}

/* MarkupString داخل مقاله — سلکتور عادی (نه :deep؛ این فایل CSS سراسری است) */
.np-docs-article .doc-bar,
.np-docs-article .doc-footer {
  display: none;
}

/* کنتراست اجباری: ارث‌بری رنگ سرمه‌ای .np-mkt روی code/pre/toc نرود */
.np-docs-article .doc-toc,
.np-docs-article .diagram {
  color: #0D1B3D;
  background: #eef2f8;
  border: 1px solid #cfd8e8;
}

.np-docs-article .note,
.np-docs-article .doc-note {
  color: #0D1B3D;
  background: #fff8e6;
}

.np-docs-article .doc-toc a,
.np-docs-article .doc-related a,
.np-docs-article a {
  color: #8a6412;
}

.np-mkt .np-docs-article code,
.np-docs-article code {
  color: #0D1B3D !important;
  background: #eef2f8 !important;
}

.np-mkt .np-docs-article pre,
.np-docs-article pre {
  background: #0D1B3D !important;
  color: #f7f9fc !important;
}

.np-mkt .np-docs-article pre code,
.np-docs-article pre code {
  color: #f7f9fc !important;
  background: transparent !important;
}

.np-docs-article h1,
.np-docs-article h2,
.np-docs-article h3,
.np-docs-article p,
.np-docs-article li,
.np-docs-article td,
.np-docs-article th {
  color: #0D1B3D;
}

.np-docs-article .doc-lead,
.np-docs-article .doc-hero figcaption,
.np-docs-article .series-card p {
  color: #3a4f6b;
}

.np-docs-article .doc-eyebrow {
  color: #C99A2E;
}

.np-docs-article .series-card {
  color: #0D1B3D;
  background: #fff;
  border: 1px solid #cfd8e8;
}

.np-mkt .np-home-footer a,
.np-mkt .np-home-footer button {
  display: block;
  color: rgba(244, 247, 251, 0.9);
  background: transparent;
  border: 0;
  padding: 0.2rem 0;
  text-align: start;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.np-mkt .np-home-footer a:hover,
.np-mkt .np-home-footer a:focus-visible,
.np-mkt .np-home-footer button:hover,
.np-mkt .np-home-footer button:focus-visible {
  color: var(--mkt-gold-soft);
  outline: none;
}

.np-mkt .np-home-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--mkt-gold-soft);
}

.np-mkt .np-home-footer p {
  margin: 0.55rem 0 0;
  color: rgba(244, 247, 251, 0.75);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ردیف برند پایین فوتر: تمام‌عرض؛ تماس دو ستونه؛ آدرس یک‌خط روی عرض کامل */
.np-mkt .np-home-footer-brand {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  min-width: 0;
  padding: 0.85rem 0 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.np-mkt .np-home-footer-brand-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.65rem;
}

.np-mkt .np-home-footer-brand-head h2 {
  margin: 0;
}

.np-mkt .np-home-footer-brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.np-mkt .np-home-footer-brand-links a {
  display: inline !important;
  padding: 0 !important;
}

.np-mkt .np-home-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.5rem;
}

.np-mkt .np-home-footer-contact li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.np-mkt .np-home-footer-contact-address {
  grid-column: 1 / -1;
}

.np-mkt .np-home-footer-contact-row {
  display: grid !important;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 0.55rem;
  align-items: start;
  padding: 0.15rem 0 !important;
  color: rgba(244, 247, 251, 0.88);
  line-height: 1.45;
  font-size: 0.9rem;
  text-decoration: none;
}

.np-mkt .np-home-footer-contact-static {
  cursor: default;
  color: rgba(244, 247, 251, 0.75);
}

.np-mkt a.np-home-footer-contact-row:hover,
.np-mkt a.np-home-footer-contact-row:focus-visible {
  color: var(--mkt-gold-soft);
}

.np-mkt .np-home-footer-ico {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: var(--mkt-gold-soft);
  flex: 0 0 auto;
}

.np-mkt .np-home-footer-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.np-mkt .np-home-footer-contact-row > span:last-child {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.np-mkt .np-home-footer-contact-address .np-home-footer-contact-row > span:last-child {
  white-space: nowrap;
}

.np-docs-consult {
  margin-top: 0.85rem;
}

.np-docs-consult-link {
  display: inline;
  margin-inline-start: 0.35rem;
  font-weight: 700;
  color: var(--mkt-navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.np-docs-consult-link:hover,
.np-docs-consult-link:focus-visible {
  color: var(--mkt-gold);
  outline: none;
}

.np-mkt .np-home-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0 1.2rem;
}

.np-mkt .np-home-copy .np-home-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

@media (max-width: 1100px) {
  .np-mkt .np-home-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .np-mkt-contact-grid {
    grid-template-columns: 1fr;
  }

  .np-mkt .np-home-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .np-docs-grid,
  .np-docs-gateways {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .np-mkt .np-home-footer-contact {
    grid-template-columns: 1fr;
  }

  .np-mkt .np-home-footer-contact-address .np-home-footer-contact-row > span:last-child {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* تابلو از روی سوژه خارج و زیر قاب تزئینی می‌آید */
  .np-mkt-photo-office .np-mkt-plaque,
  .np-mkt-photo-team .np-mkt-plaque {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
  }

  .np-mkt-photo-frame {
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .np-mkt-photo-img {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(11, 35, 66, 0.12);
  }

  .np-mkt-plaque-inner {
    max-width: 100%;
  }

  /* موبایل: دو ستون تا فوتر خیلی کشیده نشود */
  .np-mkt .np-home-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
  }

  .np-mkt .np-home-footer h2 {
    font-size: 0.95rem;
  }

  .np-mkt .np-home-footer a,
  .np-mkt .np-home-footer button {
    font-size: 0.9rem;
    line-height: 1.45;
  }
}

@media (max-width: 420px) {
  .np-mkt .np-home-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-mkt-related .np-mkt-card,
  .np-mkt-btn {
    transition: none;
  }
}
