/*
 * Documentation package graphics (imported docs and the pack preview).
 * One stylesheet, three product accents:
 *   .t4-doc-pack--crm (default) · .t4-doc-pack--content · .t4-doc-pack--studio
 * Older imports without the class take the accent from the docs category
 * (.t4-docs--crm|content|studio on the layout, see single-docs.php).
 */
.t4-doc-pack {
  --pack-brand: #6d28d9;
  --pack-brand-2: #4f46e5;
  --pack-brand-ink: #5b21b6;
  --pack-label: "CRM ووکامرس تیک۴";
  --pack-surface: #fff;
  --pack-surface-2: #f3f6fb;
  --pack-line: #e3e8f1;
  --pack-line-2: #d3dbe9;
  --pack-text: #0f172a;
  --pack-text-2: #475569;
  --pack-text-3: #7a879c;
  --pack-hot: #f0386b;
  --pack-ok: #0f9d74;
  --pack-warn: #d9560f;
  --pack-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -18px rgba(15, 23, 42, .22);
  --pack-radius: 20px;
  --pack-brand-soft: color-mix(in srgb, var(--pack-brand) 10%, var(--pack-surface));
  --pack-brand-line: color-mix(in srgb, var(--pack-brand) 24%, var(--pack-line));
  --pack-grad: linear-gradient(135deg, var(--pack-brand), var(--pack-brand-2));
  --pack-hot-soft: color-mix(in srgb, var(--pack-hot) 13%, transparent);
  counter-reset: t4doc-sec;
  color: var(--pack-text);
  font-size: 16px;
  line-height: 2;
}
.t4-doc-pack--content,
.t4-docs--content .t4-doc-pack:not(.t4-doc-pack--crm, .t4-doc-pack--studio) {
  --pack-brand: #0d9488;
  --pack-brand-2: #0891b2;
  --pack-brand-ink: #0f766e;
  --pack-label: "مدیریت محتوای تیک۴";
}
.t4-doc-pack--studio,
.t4-docs--studio .t4-doc-pack:not(.t4-doc-pack--crm, .t4-doc-pack--content) {
  --pack-brand: #9333ea;
  --pack-brand-2: #db2777;
  --pack-brand-ink: #7e22ce;
  --pack-label: "تیک۴ استدیو";
}

[data-theme="dark"] .t4-doc-pack {
  --pack-surface: #111a2e;
  --pack-surface-2: #162139;
  --pack-line: #23314e;
  --pack-line-2: #2e3e60;
  --pack-text: #e8eef9;
  --pack-text-2: #aab7cd;
  --pack-text-3: #7d8ba6;
  --pack-brand-ink: color-mix(in srgb, var(--pack-brand) 55%, #fff);
  --pack-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -18px rgba(0, 0, 0, .7);
  --pack-brand-soft: color-mix(in srgb, var(--pack-brand) 18%, var(--pack-surface));
}

.t4-doc-pack *,
.t4-doc-pack *::before,
.t4-doc-pack *::after { box-sizing: border-box; }

/* ---------- head ---------- */
.t4-doc-pack .doc__head {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 0 34px; padding: 30px 32px 26px;
  border: 1px solid var(--pack-brand-line); border-radius: 28px;
  background:
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--pack-brand) 20%, transparent), transparent 70%),
    radial-gradient(360px 200px at 0% 100%, color-mix(in srgb, var(--pack-brand-2) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--pack-surface), var(--pack-surface-2));
  box-shadow: var(--pack-shadow);
}
.t4-doc-pack .doc__head::before {
  content: var(--pack-label);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 14px 5px 12px;
  border-radius: 999px; background: var(--pack-grad); color: #fff;
  font-size: 12.5px; font-weight: 800; line-height: 1.6; letter-spacing: 0;
  box-shadow: 0 8px 18px -10px var(--pack-brand);
}
.t4-doc-pack .doc__head::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--pack-brand) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--pack-brand) 9%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(60% 90% at 0% 0%, #000, transparent 70%); mask-image: radial-gradient(60% 90% at 0% 0%, #000, transparent 70%);
}
.t4-doc-pack h2 { margin: 0 0 10px; color: var(--pack-text); font-size: clamp(25px, 3vw, 34px); font-weight: 900; line-height: 1.55; letter-spacing: -.4px; }
.t4-doc-pack .lead { margin: 0; color: var(--pack-text-2); font-size: 17px; line-height: 2.05; }
.t4-doc-pack .crumb { display: none; }
.t4-doc-pack .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.t4-doc-pack .meta > span { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; background: var(--pack-surface); border: 1px solid var(--pack-line); color: var(--pack-text-2); font-size: 12.5px; font-weight: 600; }
.t4-doc-pack .meta .meta__badge { border-color: var(--pack-brand-line); color: var(--pack-brand-ink); background: var(--pack-brand-soft); }

/* ---------- text ---------- */
.t4-doc-pack h3 {
  display: flex; align-items: center; gap: 12px; margin: 46px 0 14px;
  color: var(--pack-text); font-size: 21px; font-weight: 850; line-height: 1.65; letter-spacing: -.2px;
  scroll-margin-top: var(--t4-header-clearance, 96px);
}
.t4-doc-pack h3:not(.faq__title) { counter-increment: t4doc-sec; }
.t4-doc-pack h3:not(.faq__title)::before {
  content: counter(t4doc-sec, persian);
  flex: 0 0 36px; height: 36px; display: grid; place-items: center;
  border-radius: 12px; background: var(--pack-grad); color: #fff;
  font-size: 16px; font-weight: 900; line-height: 1;
  box-shadow: 0 10px 20px -12px var(--pack-brand), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.t4-doc-pack h4 { margin: 0; color: var(--pack-text); font-size: 15.5px; font-weight: 750; line-height: 1.85; }
.t4-doc-pack p { margin: 0 0 16px; }
.t4-doc-pack a:not([class]) { color: var(--pack-brand-ink); font-weight: 600; text-decoration: none; background-image: linear-gradient(var(--pack-brand-line), var(--pack-brand-line)); background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s, color .2s; }
.t4-doc-pack a:not([class]):hover { color: var(--pack-brand); background-image: var(--pack-grad); text-decoration: none; }
.t4-doc-pack b, .t4-doc-pack strong { color: var(--pack-text); font-weight: 800; }
.t4-doc-pack code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--pack-brand-soft); border: 1px solid var(--pack-brand-line); color: var(--pack-brand-ink); border-radius: 7px; padding: 1px 7px; }
.t4-doc-pack .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.t4-doc-pack kbd { font: 600 .78em/1 ui-monospace, Menlo, monospace; border: 1px solid var(--pack-line-2); border-bottom-width: 2px; border-radius: 7px; padding: 3px 7px; background: var(--pack-surface); direction: ltr; display: inline-block; }
.t4-doc-pack .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- lists ---------- */
.t4-doc-pack :is(.list, .steps) { margin: 0 0 26px; padding: 0; list-style: none; }
.t4-doc-pack .list { display: grid; gap: 10px; }
.t4-doc-pack .list li { position: relative; margin: 0; padding-inline-start: 36px; line-height: 2; }
.t4-doc-pack .list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 24px; height: 24px; border-radius: 8px; background: var(--pack-brand-soft); border: 1px solid var(--pack-brand-line); }
.t4-doc-pack .list li::after { content: ""; position: absolute; inset-inline-start: 6px; top: calc(.42em + 6px); width: 12px; height: 12px; background: var(--pack-brand); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat; }

.t4-doc-pack ol.steps { counter-reset: t4doc-step; display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: stretch; }
.t4-doc-pack .steps li {
  counter-increment: t4doc-step; position: relative; min-width: 0; margin: 0; padding: 54px 18px 18px;
  border: 1px solid var(--pack-line); border-radius: 18px; background: var(--pack-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); line-height: 1.95; font-size: 15px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.t4-doc-pack .steps li:hover { transform: translateY(-3px); border-color: var(--pack-brand-line); box-shadow: var(--pack-shadow); }
.t4-doc-pack .steps li::before {
  content: counter(t4doc-step, persian);
  position: absolute; top: 14px; inset-inline-start: 16px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 10px; background: var(--pack-grad); color: #fff; font-size: 14.5px; font-weight: 900; line-height: 1;
  box-shadow: 0 8px 16px -10px var(--pack-brand);
}
.t4-doc-pack .steps li::after {
  content: "گام"; position: absolute; top: 17px; inset-inline-start: 54px; color: var(--pack-text-3); font-size: 12px; font-weight: 700; line-height: 24px;
}
.t4-doc-pack .steps li:first-child { border-top: 3px solid var(--pack-brand); }

/* ---------- notes ---------- */
.t4-doc-pack .note {
  --note: var(--pack-brand);
  position: relative; display: flex; gap: 14px; margin: 0 0 24px; padding: 18px 20px 18px 18px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--note) 22%, var(--pack-line)); border-radius: 18px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--note) 9%, var(--pack-surface)), var(--pack-surface) 70%);
  font-size: 15px; line-height: 2;
}
.t4-doc-pack .note::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--note); }
.t4-doc-pack .note p { margin: 0; }
.t4-doc-pack .note .note__title { margin-bottom: 2px; color: var(--pack-text); font-weight: 850; }
.t4-doc-pack .note__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-top: 2px; border-radius: 11px; background: var(--note); color: #fff; font-size: 15px; font-weight: 900; box-shadow: 0 8px 16px -10px var(--note); }
.t4-doc-pack .note--info { --note: var(--pack-brand); }
.t4-doc-pack .note--info .note__icon { background: var(--pack-grad); }
.t4-doc-pack .note--tip { --note: var(--pack-ok); }
.t4-doc-pack .note--warn { --note: var(--pack-warn); }

/* ---------- tables ---------- */
.t4-doc-pack .table { margin: 0 0 26px; overflow-x: auto; border: 1px solid var(--pack-line); border-radius: 18px; background: var(--pack-surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.t4-doc-pack table { display: table; width: 100%; margin: 0; border-collapse: collapse; font-size: 14.5px; }
.t4-doc-pack :is(th, td) { padding: 13px 18px; border: 0; border-bottom: 1px solid var(--pack-line); text-align: start; vertical-align: top; line-height: 1.9; background: transparent; }
.t4-doc-pack thead th { background: linear-gradient(90deg, color-mix(in srgb, var(--pack-brand) 9%, var(--pack-surface-2)), var(--pack-surface-2)); color: var(--pack-text-2); font-size: 12.5px; font-weight: 800; letter-spacing: .1px; }
.t4-doc-pack tbody th { position: relative; color: var(--pack-text); font-weight: 800; white-space: nowrap; }
.t4-doc-pack tbody tr { transition: background .15s; }
.t4-doc-pack tbody tr:hover > * { background: color-mix(in srgb, var(--pack-brand) 4%, transparent); }
.t4-doc-pack tbody tr:last-child > * { border-bottom: 0; }

/* ---------- cards ---------- */
.t4-doc-pack .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 26px; }
.t4-doc-pack a.card { text-decoration: none; }
.t4-doc-pack .card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px 44px;
  border: 1px solid var(--pack-line); border-radius: 18px; background: var(--pack-surface); color: var(--pack-text);
  background-image: none; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.t4-doc-pack .card::after { content: "←"; position: absolute; left: 16px; top: 18px; color: var(--pack-text-3); font-weight: 800; transition: transform .25s, color .25s; }
.t4-doc-pack .card:hover { transform: translateY(-3px); border-color: var(--pack-brand-line); box-shadow: var(--pack-shadow); background-image: none; }
.t4-doc-pack .card:hover::after { color: var(--pack-brand); transform: translateX(-4px); }
.t4-doc-pack .card b { font-size: 15.5px; }
.t4-doc-pack .card span { color: var(--pack-text-3); font-size: 13px; font-weight: 500; line-height: 1.85; }

/* ---------- screenshots ---------- */
.t4-doc-pack .shot { display: block; max-width: none; margin: 26px 0 34px; overflow: visible; }
.t4-doc-pack .shot__frame {
  position: relative; overflow: visible; padding: 1px; border-radius: 22px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--pack-brand) 55%, var(--pack-line)), var(--pack-line) 40%, color-mix(in srgb, var(--pack-brand-2) 45%, var(--pack-line)));
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--pack-brand) 70%, #0f172a), 0 2px 6px rgba(15, 23, 42, .06);
}
.t4-doc-pack .shot__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; overflow: hidden; border-radius: 21px 21px 0 0; background: linear-gradient(var(--pack-surface), var(--pack-surface-2)); border-bottom: 1px solid var(--pack-line); direction: ltr; }
.t4-doc-pack .shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; font-style: normal; }
.t4-doc-pack .shot__bar i:nth-child(1) { background: #ff6058; }
.t4-doc-pack .shot__bar i:nth-child(2) { background: #ffbd2e; }
.t4-doc-pack .shot__bar i:nth-child(3) { background: #28c941; }
.t4-doc-pack .shot__url { max-width: 50%; margin-inline-start: 12px; padding: 2px 12px; overflow: hidden; border: 1px solid var(--pack-line); border-radius: 8px; background: var(--pack-surface); color: var(--pack-text-3); font: 500 12px ui-monospace, Menlo, monospace; white-space: nowrap; text-overflow: ellipsis; }
.t4-doc-pack .shot__bar em { margin-left: auto; padding: 1px 10px; border-radius: 999px; background: var(--pack-brand-soft); color: var(--pack-brand-ink); direction: rtl; font-size: 11.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.t4-doc-pack .shot__stage { position: relative; display: block; width: 100%; overflow: visible; border-radius: 0 0 21px 21px; background: var(--pack-surface-2); cursor: zoom-in; }
.t4-doc-pack .shot__stage > img { position: relative; display: block; width: 100%; max-width: none; height: auto; margin: 0; border-radius: 0 0 21px 21px; object-fit: fill; }
.t4-doc-pack .shot__stage[style*="aspect-ratio"] > img { position: absolute; inset: 0; height: 100%; }
.t4-doc-pack .shot--phone .shot__frame { max-width: 390px; margin-inline: auto; padding: 9px; border-radius: 40px; background: linear-gradient(145deg, #2a2f45, #0a0c16); }
.t4-doc-pack .shot--phone .shot__bar { display: none; }
.t4-doc-pack .shot--phone .shot__stage,
.t4-doc-pack .shot--phone .shot__stage > img { border-radius: 32px; }
.t4-doc-pack button.hot { appearance: none; position: absolute; z-index: 2; min-width: 0; min-height: 0; margin: 0; padding: 0; overflow: visible; border: 2.5px solid var(--pack-hot); border-radius: 10px; background: transparent; color: #fff; font: inherit; line-height: 1; cursor: pointer; transition: box-shadow .3s, background .3s; }
.t4-doc-pack button.hot > span { position: absolute; top: -15px; right: -15px; display: flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--pack-hot); color: #fff; font: 800 14px/1 inherit; line-height: 1; box-shadow: 0 6px 14px -4px rgba(240, 56, 107, .6), 0 0 0 3px var(--pack-surface); pointer-events: none; }
.t4-doc-pack .hot:hover,
.t4-doc-pack .hot.is-on { background: var(--pack-hot-soft); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pack-hot) 20%, transparent); }
.t4-doc-pack .shot__stage.is-spot::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: rgba(2, 6, 23, .55); pointer-events: none; }
.t4-doc-pack .shot__stage.is-spot .hot { opacity: 1; z-index: 1; }
.t4-doc-pack .shot__stage.is-spot .hot.is-on { z-index: 3; opacity: 1; background: var(--pack-hot-soft); }
.t4-doc-pack button.shot__zoom { appearance: none; position: absolute; z-index: 4; left: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 12px; background: var(--pack-grad); color: #fff; cursor: pointer; opacity: 0; transform: translateY(4px); transition: .25s; box-shadow: 0 10px 20px -10px var(--pack-brand); }
.t4-doc-pack .shot__stage:hover .shot__zoom,
.t4-doc-pack .shot__zoom:focus-visible { opacity: 1; transform: none; }
.t4-doc-pack .shot__zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.t4-doc-pack figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 14px 4px 0; padding: 0; color: var(--pack-text-2); font-size: 13.5px; line-height: 1.9; text-align: center; }
.t4-doc-pack .shot__num { padding: 1px 10px; border-radius: 999px; background: var(--pack-grad); color: #fff; font-size: 12px; font-weight: 800; }
.t4-doc-pack .legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: none; }
.t4-doc-pack .legend li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 11px 14px; border: 1px solid var(--pack-line); border-radius: 14px; background: var(--pack-surface); cursor: default; font-size: 14.5px; font-weight: 400; line-height: 1.9; list-style: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.t4-doc-pack .legend li::marker { content: none; }
.t4-doc-pack .legend li > span { flex: 1; min-width: 0; }
.t4-doc-pack .legend li:not(.no-hot) { cursor: pointer; }
.t4-doc-pack .legend li:not(.no-hot):hover,
.t4-doc-pack .legend li.is-on { border-color: color-mix(in srgb, var(--pack-hot) 45%, var(--pack-line)); background: color-mix(in srgb, var(--pack-hot) 5%, var(--pack-surface)); box-shadow: var(--pack-shadow); transform: translateY(-1px); }
.t4-doc-pack .legend__n { flex: 0 0 26px; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 2px 0 0; border-radius: 13px; background: var(--pack-hot); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.t4-doc-pack .legend li.no-hot .legend__n { background: var(--pack-text-3); }

/* ---------- FAQ ---------- */
.t4-doc-pack .faq { margin-top: 50px; padding: 26px 26px 18px; border: 1px solid var(--pack-line); border-radius: 26px; background: linear-gradient(180deg, var(--pack-brand-soft), var(--pack-surface) 140px); }
.t4-doc-pack .faq__title { margin: 0 0 16px; }
.t4-doc-pack .faq__title::before { content: "؟"; flex: 0 0 36px; display: grid; place-items: center; height: 36px; border-radius: 12px; background: var(--pack-grad); color: #fff; font-size: 17px; font-weight: 900; line-height: 1; box-shadow: 0 10px 20px -12px var(--pack-brand); }
.t4-doc-pack .faq__item { margin: 0 0 10px; border: 1px solid var(--pack-line); border-radius: 16px; background: var(--pack-surface); transition: box-shadow .2s, border-color .2s; }
.t4-doc-pack .faq__item[open] { border-color: var(--pack-brand-line); box-shadow: var(--pack-shadow); }
.t4-doc-pack .faq__item summary { display: flex; align-items: center; gap: 12px; padding: 15px 18px; list-style: none; cursor: pointer; }
.t4-doc-pack .faq__item summary::-webkit-details-marker { display: none; }
.t4-doc-pack .faq__item h4 { flex: 1; }
.t4-doc-pack .faq__chev { position: relative; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--pack-brand-soft); transition: background .2s, transform .3s; }
.t4-doc-pack .faq__chev::before,
.t4-doc-pack .faq__chev::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--pack-brand); transition: transform .3s; }
.t4-doc-pack .faq__chev::after { transform: rotate(90deg); }
.t4-doc-pack .faq__item[open] .faq__chev { background: var(--pack-grad); transform: rotate(180deg); }
.t4-doc-pack .faq__item[open] .faq__chev::before,
.t4-doc-pack .faq__item[open] .faq__chev::after { background: #fff; }
.t4-doc-pack .faq__item[open] .faq__chev::after { transform: rotate(0deg); }
.t4-doc-pack .faq__item.is-closing .faq__chev::after { transform: rotate(90deg); }
.t4-doc-pack .faq__item.is-animating { overflow: hidden; }
.t4-doc-pack .faq__a { padding: 0 18px 16px; color: var(--pack-text-2); font-size: 15px; }
.t4-doc-pack .faq__a p { margin: 0; }

/* ---------- pager ---------- */
.t4-doc-pack .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 50px; }
.t4-doc-pack .pager a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border: 1px solid var(--pack-line); border-radius: 20px; background: var(--pack-surface); background-image: none; color: var(--pack-text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.t4-doc-pack .pager a:hover { transform: translateY(-3px); border-color: var(--pack-brand-line); box-shadow: var(--pack-shadow); background-image: none; color: var(--pack-text); }
.t4-doc-pack .pager small { color: var(--pack-text-3); font-size: 12.5px; font-weight: 700; }
.t4-doc-pack .pager b { font-size: 16px; font-weight: 850; }
.t4-doc-pack .pager__prev { padding-inline-start: 62px !important; }
.t4-doc-pack .pager__next { padding-inline-end: 62px !important; text-align: left; }
.t4-doc-pack .pager a::before { position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 11px; background: var(--pack-brand-soft); color: var(--pack-brand); font-weight: 900; transition: background .25s, color .25s; }
.t4-doc-pack .pager__prev::before { content: "→"; inset-inline-start: 16px; }
.t4-doc-pack .pager__next::before { content: "←"; inset-inline-end: 16px; }
.t4-doc-pack .pager a:hover::before { background: var(--pack-grad); color: #fff; }

/* ---------- lightbox (site) ---------- */
.t4-doc-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 0; border: 0; background: transparent; }
.t4-doc-lb::backdrop { background: rgba(2, 6, 23, .84); backdrop-filter: blur(8px); }
.t4-doc-lb__wrap { display: grid; place-items: start center; width: 100%; height: 100%; padding: 60px 20px 30px; overflow: auto; }
.t4-doc-lb__wrap .shot__stage { position: relative; width: min(1600px, 96vw); overflow: hidden; border-radius: 14px; cursor: default; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.t4-doc-lb__wrap .shot__stage img { display: block; width: 100%; height: auto; border-radius: 0; }
.t4-doc-lb__wrap .shot__zoom { display: none; }
.t4-doc-lb__wrap .hot { position: absolute; padding: 0; border: 2.5px solid #f0386b; border-radius: 10px; background: transparent; }
.t4-doc-lb__wrap .hot > span { position: absolute; top: -13px; right: -13px; display: flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 14px; background: #f0386b; color: #fff; font: 800 14px/1 inherit; box-shadow: 0 0 0 3px #fff; }
.t4-doc-lb__wrap .hot.is-on { background: rgba(240, 56, 107, .12); }
.t4-doc-lb__close { position: fixed; z-index: 5; top: 14px; left: 14px; width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; color: #0f172a; font-size: 22px; cursor: pointer; }
.t4-doc-lb__cap { position: fixed; top: 20px; right: 20px; max-width: 70vw; margin: 0; color: #fff; font-size: 14px; font-weight: 700; }

/* ---------- inside the theme's article styles ---------- */
.t4-article-content .t4-doc-pack :is(h2, h3, h4) { color: var(--pack-text); }
.t4-article-content .t4-doc-pack h2 { margin: 0 0 10px; font-size: clamp(25px, 3vw, 34px); line-height: 1.55; font-weight: 900; }
.t4-article-content .t4-doc-pack h3 { margin: 46px 0 14px; font-size: 21px; line-height: 1.65; font-weight: 850; }
.t4-article-content .t4-doc-pack h4 { margin: 0; font-size: 15.5px; line-height: 1.85; }
.t4-article-content .t4-doc-pack a:not([class]) { text-decoration: none; }
.t4-article-content .t4-doc-pack .meta { display: none; }
.t4-article-content .t4-doc-pack li { margin-bottom: 0; }
.t4-site .t4-article-content .t4-doc-pack ol.steps { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; overflow: visible; }
.t4-site .t4-article-content .t4-doc-pack .steps li { margin: 0; padding: 54px 18px 18px; }
.t4-site .t4-article-content .t4-doc-pack .list li { margin: 0; padding-inline-start: 36px; }
.t4-site .t4-article-content .t4-doc-pack :is(.shot, .shot__frame, .shot__stage) { overflow: visible; }
.t4-site .t4-article-content .t4-doc-pack .shot__stage > img { border-radius: 0 0 21px 21px; }
.t4-site .t4-article-content .t4-doc-pack .legend { margin: 16px 0 0; padding: 0; list-style: none; }
.t4-site .t4-article-content .t4-doc-pack .legend li { margin: 0; padding: 11px 14px; overflow-wrap: break-word; }
.t4-site .t4-article-content .t4-doc-pack .legend li::marker,
.t4-site .t4-article-content .t4-doc-pack .legend li::before { content: none; }
.t4-site .t4-article-content .t4-doc-pack figcaption { margin: 14px 4px 0; padding: 0; font-size: 13.5px; line-height: 1.9; text-align: center; }
.t4-site .t4-article-content .t4-doc-pack img { border-radius: 0; }
.single-docs .t4-article-content .t4-doc-pack :is(figure, .shot) { display: block; max-width: none; margin-inline: 0; }
.single-docs .t4-article-content .t4-doc-pack .shot img { margin-inline: 0; }
.t4-site .t4-article-content .t4-doc-pack table { display: table; font-size: 14.5px; }
.t4-site .t4-article-content .t4-doc-pack :is(th, td) { padding: 13px 18px; border: 0; border-bottom: 1px solid var(--pack-line); }
.t4-site .t4-article-content .t4-doc-pack tbody tr:nth-child(even) td { background: transparent; }

/* The docs layout around the article takes the product accent too. */
.t4-docs--crm { --t4-blue: #6d28d9; }
.t4-docs--content { --t4-blue: #0d9488; }
.t4-docs--studio { --t4-blue: #9333ea; }

@media (max-width: 760px) {
  .t4-doc-pack .doc__head { padding: 22px 20px 20px; border-radius: 22px; }
  .t4-doc-pack ol.steps,
  .t4-site .t4-article-content .t4-doc-pack ol.steps { grid-template-columns: 1fr; gap: 10px; }
  .t4-doc-pack .faq { padding: 18px 14px 10px; border-radius: 20px; }
}
@media (max-width: 560px) {
  .t4-doc-pack .pager { grid-template-columns: 1fr; }
  .t4-doc-pack .shot__bar { gap: 4px; padding-inline: 8px; }
  .t4-doc-pack :is(.shot__url, .shot__bar em) { max-width: 46%; }
  .t4-doc-pack .hot > span { top: -10px; right: -10px; min-width: 22px; height: 22px; font-size: 12px; line-height: 22px; }
  .t4-doc-pack .legend { grid-template-columns: 1fr; }
  .t4-site .t4-article-content .t4-doc-pack .legend li { padding: 9px 11px; font-size: 14px; }
  .t4-doc-pack .legend__n { flex-basis: 24px; width: 24px; height: 24px; border-radius: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .t4-doc-pack * { animation: none !important; transition: none !important; }
}
