/* Editorial guide variant. Reuse header-nav.css tokens; do not restyle .pv-*. */
body.ir-editorial-page {
  margin: 0;
  padding: 0;
  color: var(--pv-ink-body, #1f2937);
  background: var(--pv-mist-100, #f3f4f6);
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.85;
}
html[dir="rtl"] body.ir-editorial-page { font-family: 'Vazirmatn', Tahoma, sans-serif; }
.ir-editorial-page * { box-sizing: border-box; }
.ir-guide-main, .ir-guide-main *, .ir-guide-footer, .ir-guide-footer *, .ir-guide-skip { font-family: inherit; }
.ir-guide-main { max-width: 1100px; padding: 28px 24px 48px; margin-inline: auto; }
.ir-guide-breadcrumb { margin-block-end: 22px; font-size: .9rem; }
.ir-guide-breadcrumb a, .ir-guide-copy a, .ir-guide-return a, .ir-guide-footer a {
  color: #513495;
  text-decoration: underline;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.ir-guide-breadcrumb a:hover, .ir-guide-copy a:hover, .ir-guide-return a:hover { color: #34215f; }
.ir-guide-article { background: var(--pv-paper, #fff); border: 1px solid var(--pv-line, #e5e7eb); border-radius: 20px; overflow: hidden; }
.ir-guide-heading { padding: 44px 48px 28px; }
.ir-guide-eyebrow { color: #654a1e; font-size: .85rem; font-weight: 700; letter-spacing: .035em; margin: 0 0 12px; }
.ir-guide-heading h1 { color: var(--pv-ink-900, #111827); font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.4; font-weight: 800; margin: 0 0 18px; text-wrap: balance; overflow-wrap: anywhere; }
.ir-guide-byline { color: #596273; font-size: .88rem; margin: 0; }
.ir-guide-cover { margin: 0; }
.ir-guide-cover img { display: block; width: 100%; height: clamp(220px, 42vw, 480px); object-fit: cover; object-position: center 58%; }
.ir-guide-cover figcaption { font-size: .8rem; color: #596273; padding: 12px 32px; margin: 0; background: #f8fafc; }
.ir-guide-copy { max-width: 900px; padding: 24px 48px 42px; margin-inline: auto; font-size: 1.04rem; }
.ir-guide-copy .ir-guide-lead { font-size: 1.15rem; line-height: 1.95; color: var(--pv-ink-900, #111827); }
.ir-guide-copy p { margin: 0 0 20px; color: inherit; font-weight: 400; }
.ir-guide-copy h2 { color: var(--pv-ink-900, #111827); font-size: 1.55rem; line-height: 1.6; margin: 0 0 18px; font-weight: 800; }
.ir-guide-copy h3 { color: var(--pv-ink-body, #1f2937); font-size: 1.15rem; line-height: 1.65; margin: 26px 0 12px; font-weight: 700; }
.ir-guide-copy section { margin-block-start: 38px; scroll-margin-top: 110px; }
.ir-guide-copy ul { list-style: disc; margin: 12px 0 24px; padding-inline-start: 25px; }
.ir-guide-copy li { margin-block: 10px; }
.ir-guide-note { background: #f6f3fc; border-inline-start: 4px solid var(--pv-violet-600, #6b46c1); border-radius: 8px; padding: 20px 22px; margin-block: 24px; }
.ir-guide-toc { padding: 24px; margin-block: 28px; border: 1px solid var(--pv-line, #e5e7eb); border-radius: 12px; }
.ir-guide-toc h2 { font-size: 1.1rem; }
.ir-guide-toc ul { margin-block-end: 0; }
.ir-guide-table-wrap { max-width: 100%; overflow-x: auto; scrollbar-gutter: stable; scrollbar-color: #7c6b98 #eeeaf5; scrollbar-width: auto; border: 1px solid #d6cee3; border-radius: 10px; margin-block: 24px; }
.ir-guide-table-wrap::-webkit-scrollbar { height: 12px; }
.ir-guide-table-wrap::-webkit-scrollbar-track { background: #eeeaf5; }
.ir-guide-table-wrap::-webkit-scrollbar-thumb { background: #7c6b98; border: 2px solid #eeeaf5; border-radius: 8px; }
.ir-guide-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .94rem; background: #fff; }
.ir-guide-table caption { caption-side: top; text-align: start; padding: 18px; font-weight: 700; background: #f6f3fc; }
.ir-guide-table th, .ir-guide-table td { text-align: start; vertical-align: top; padding: 15px; border-block-end: 1px solid #ddd6e8; border-inline-end: 1px solid #ddd6e8; line-height: 1.9; }
.ir-guide-table thead th { background: #302246; color: #fff; }
.ir-guide-table tbody th { width: 17%; background: #f8f6fb; font-weight: 700; }
.ir-guide-table td { width: 27.6%; }
.ir-guide-table tbody tr:last-child > * { border-block-end: 0; }
.ir-guide-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 24px; }
.ir-guide-tools[hidden] { display: none; }
.ir-guide-tools button { appearance: none; min-height: 44px; padding: 10px 16px; border: 1px solid #513495; border-radius: 8px; background: #513495; color: #fff; font: 600 .9rem/1.5 'Inter', Arial, sans-serif; cursor: pointer; }
.ir-guide-tools button[data-guide-reset] { background: #fff; color: #513495; }
.ir-guide-tools button:hover:not(:disabled) { background: #34215f; color: #fff; }
.ir-guide-tools button:active:not(:disabled) { background: #251840; }
.ir-guide-tools button:disabled { opacity: .55; cursor: not-allowed; }
.ir-guide-tools .ir-guide-progress { flex-basis: 100%; font-size: .9rem; margin: 0; }
.ir-guide-checklist fieldset { min-width: 0; margin: 26px 0; padding: 12px 20px 20px; border: 1px solid #d6cee3; border-radius: 10px; }
.ir-guide-checklist legend { font-weight: 700; color: var(--pv-ink-900, #111827); padding-inline: 8px; }
.ir-guide-checklist label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 4px; cursor: pointer; border-bottom: 1px solid var(--pv-line, #e5e7eb); }
.ir-guide-checklist label:last-child { border: 0; }
.ir-guide-checklist label:hover { background: #f6f3fc; }
.ir-guide-checklist label:has(input:checked) { color: #4c3b65; background: #f6f3fc; }
.ir-guide-checklist input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 6px; accent-color: #513495; cursor: pointer; }
.ir-guide-related { margin-block-start: 38px; border-block-start: 1px solid var(--pv-line, #e5e7eb); padding-block-start: 28px; font-size: .94rem; }
.ir-guide-related h2 { font-size: 1.15rem; }
.ir-guide-return { margin: 28px 0 0; }
.ir-guide-footer { background: #fff; border-block-start: 1px solid var(--pv-line, #e5e7eb); text-align: center; padding: 28px 24px; font-size: .9rem; }
.ir-guide-footer p { color: #596273; margin-top: 8px; }
.ir-guide-skip { position: fixed; top: 8px; inset-inline-start: 12px; z-index: 2000; transform: translateY(-200%); padding: 12px 18px; background: #fff; color: #34215f; border: 2px solid #513495; border-radius: 6px; }
.ir-guide-skip:focus { transform: none; }
.ir-guide-main a:focus-visible, .ir-guide-tools button:focus-visible, .ir-guide-checklist input:focus-visible, .ir-guide-table-wrap:focus-visible, .ir-guide-footer a:focus-visible { outline: 3px solid #6b46c1; outline-offset: 4px; }
.ir-guide-main:focus { outline: 0; }
@media (max-width: 600px) {
  .ir-guide-main { padding: 18px 12px 32px; }
  .ir-guide-article { border-radius: 14px; }
  .ir-guide-heading { padding: 26px 20px 22px; }
  .ir-guide-copy { padding: 22px 20px 30px; font-size: 1rem; }
  .ir-guide-copy h2 { font-size: 1.3rem; }
  .ir-guide-cover figcaption { padding: 12px 20px; }
  .ir-guide-toc, .ir-guide-note { padding: 18px; }
  .ir-guide-checklist fieldset { padding-inline: 12px; }
  .ir-guide-tools button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.ir-editorial-page) { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .ir-guide-table-wrap { scrollbar-color: auto; }
  .ir-guide-checklist label:has(input:checked) { outline: 1px solid CanvasText; }
}
@media print {
  @page { margin: 14mm; }
  body.ir-editorial-page { color: #000; background: #fff; font-size: 11pt; }
  .pv-header, .pv-panel, .pv-overlay, .ir-guide-skip, .ir-guide-breadcrumb, .ir-guide-tools, .ir-guide-return, .ir-guide-footer, .ir-guide-cover, .ir-guide-toc, .ir-guide-related { display: none !important; }
  .ir-guide-main, .ir-guide-heading, .ir-guide-copy { max-width: none; padding: 0; margin: 0; }
  .ir-guide-article { border: 0; overflow: visible; }
  .ir-guide-heading h1 { font-size: 22pt; }
  .ir-guide-copy h2 { font-size: 16pt; break-after: avoid; }
  .ir-guide-copy h3, .ir-guide-checklist legend { break-after: avoid; }
  .ir-guide-copy section { margin-block-start: 20pt; }
  .ir-guide-note { background: none; border: 1px solid #555; padding: 10pt; }
  .ir-guide-table-wrap { overflow: visible; border: 0; }
  .ir-guide-table { min-width: 0; table-layout: fixed; font-size: 9pt; }
  .ir-guide-table th, .ir-guide-table td { padding: 6pt; color: #000; background: #fff !important; overflow-wrap: anywhere; }
  .ir-guide-table tr { break-inside: avoid; }
  .ir-guide-checklist-section { break-before: page; }
  .ir-guide-checklist label { break-inside: avoid; color: #000; background: none; padding: 7pt 0; }
  .ir-guide-copy a { color: #000; }
}
