/* Loaded with media=print; scoped to the factory document. */
/* Lift the page counter onto the fixed footer baseline (A4, 100% scale). */
@page{size:A4;margin:14mm 14mm 10mm;
 @bottom-center{direction:rtl;content:"صفحهٔ " counter(page,persian) " از " counter(pages,persian);font-family:Vazirmatn,sans-serif;font-size:8pt;color:#526780;vertical-align:top;line-height:1.6;margin-top:-4mm}
}

/* Page margin text paints behind document backgrounds; keep it visible. */
/* Keep print coordinates LTR at every scale; the factory content stays RTL. */
html{scrollbar-gutter:auto}
html,body.public-site{direction:ltr;background:transparent!important;color:#172b49!important;font-size:10pt!important}
body.public-site:has(.factory-experience){padding:0!important}
.public-site #main{display:block;padding:0!important}
.public-site .container.factory-experience{direction:rtl;width:100%;max-width:none;margin:0;padding:0!important;position:relative;isolation:isolate;--pf-panel-pad:0;--pf-panel-gap:6mm}
.factory-experience .factory-print-only[hidden]{display:block!important}
.factory-experience .factory-print-masthead[hidden]{display:flex!important;align-items:center;justify-content:space-between;gap:10mm;border-bottom:1.2mm solid #002b66;padding:0 0 4mm;margin:0 0 5mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.factory-print-brand{display:flex;align-items:center;gap:4mm;min-width:0}
.factory-print-brand img{width:34mm;height:19mm;object-fit:contain}
.factory-print-brand strong{display:block;font-size:13pt;color:#002b66}
.factory-print-brand span{display:block;font-size:8pt;max-width:65mm;line-height:1.7;color:#526780}
.factory-print-edition{flex-shrink:0;display:grid;gap:1mm;text-align:left;font-size:8pt;line-height:1.55;color:#526780}
.factory-print-edition a{font-size:13pt;font-weight:750;color:#002b66}
.factory-print-edition small{font-size:7.5pt}
.factory-experience .pf-hero{display:block;padding:0!important;border:0;border-radius:0;background:transparent;margin:0 0 4mm;break-inside:avoid}
.factory-experience .pf-heading,.factory-experience .pf-identity{display:block;min-width:0}
.factory-experience .pf-name{display:flex;align-items:center;gap:5mm;margin:0}
.factory-experience .pf-name img{width:22mm;height:22mm;object-fit:contain;padding:2mm;border:.25mm solid #dfe7f0;border-radius:3mm;background:#fff}
.factory-experience .pf-title{min-width:0}
.factory-experience .pf-name h1{font-size:25pt;line-height:1.5;font-weight:850;margin:0;color:#002b66;overflow-wrap:anywhere}
.factory-experience .verified-badge{display:none!important}
.factory-experience .pf-facts{display:flex;flex-wrap:wrap;gap:2mm 4mm;margin:4mm 0 0}
.factory-experience .pf-facts a{display:inline-flex;padding:0;border:0;border-radius:0;background:transparent;font-size:9pt;color:#526780}
.factory-experience .pf-facts .icon{width:13px;height:13px;color:#bd5300}
.factory-experience .pf-summary{font-size:10.5pt;line-height:1.8;margin:4mm 0 0;max-width:none;color:#172b49}
.factory-experience .pf-timestamps{display:flex;flex-wrap:wrap;gap:2mm 6mm;margin:3mm 0 0;padding:0;border:0}
.factory-experience .pf-timestamps .pf-freshness{padding:0;background:transparent;border:0;border-radius:0;margin:0;font-size:8pt;line-height:1.7;color:#526780}
.factory-experience .pf-timestamps .pf-freshness .icon{display:none}
.factory-experience .pf-timestamps .pf-freshness>div{display:flex;flex-wrap:wrap;gap:1mm 2mm;align-items:baseline}
.factory-experience .pf-timestamps .pf-freshness :is(span,strong,time,small){font-size:8pt;font-weight:400}
.factory-experience .factory-print-return[hidden]{display:flex!important;align-items:center;gap:5mm;border:0;border-inline-start:1mm solid #ff7900;background:#f6f8fb;padding:3mm 4mm;margin:0 0 4mm;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.factory-print-return strong{display:block;color:#002b66;font-size:10pt}
.factory-print-return p{margin:1mm 0;font-size:8.5pt;line-height:1.7;color:#526780}
.factory-print-return a{display:block;direction:ltr;text-align:right;unicode-bidi:plaintext;overflow-wrap:anywhere;font-size:8pt;color:#002b66;line-height:1.8}
.factory-print-qr{width:25mm;height:25mm;flex:0 0 25mm;background:#fff}
.factory-print-qr svg{display:block;width:100%;height:100%}
.factory-experience :is(.pf-body,.pf-content){display:block;width:100%;min-width:0}
.factory-experience :is(.pf-contact,.pf-section){position:static;width:auto;max-width:none;padding:0!important;margin:0 0 4mm!important;background:transparent;border:0!important;border-radius:0!important;break-inside:auto}
.factory-experience .pf-contact{border-block:0.3mm solid #cbd7e6!important;padding-block:3mm!important;break-inside:auto}
.factory-experience :is(h2,.section-heading h2){font-size:13pt;line-height:1.7;font-weight:750;color:#002b66;margin:0 0 3mm;padding:0!important;border:0!important;break-after:avoid}
.factory-experience h2::before,.factory-experience h2::after{display:none}
.factory-experience .pf-contact h2>.icon{display:none}
.factory-experience .pf-contact dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm 8mm;margin:0}
.factory-experience .pf-contact .contact-item{padding:0;border:0;break-inside:avoid;margin:0;min-width:0}
.factory-experience .pf-contact .contact-item:first-child{grid-column:1/-1}
.factory-experience .pf-contact dt{font-size:8pt;font-weight:400;line-height:1.6;color:#526780;margin:0 0 1mm}
.factory-experience .pf-contact dt .icon{display:none}
.factory-experience .pf-contact dd{display:block;margin:0;font-size:10pt;line-height:1.8;color:#172b49;overflow-wrap:anywhere}
.factory-experience .pf-contact dd a{font-size:10pt;color:#002b66;font-weight:650}
.factory-experience .section-heading{display:block;margin:0!important;break-after:avoid}
.factory-experience .section-heading>.text-link,.factory-experience #factory-photos .section-heading>.pf-caption{display:none!important}
.factory-experience .pf-section .prose{font-size:10pt;line-height:1.8;color:#172b49;overflow-wrap:anywhere}
.factory-experience .pf-section .prose :is(p,ul,ol){margin:0 0 2mm;orphans:3;widows:3}
.factory-experience .pf-section .prose :is(h2,h3,h4){font-size:12pt;margin:4mm 0 2mm;break-after:avoid}
.factory-experience .pf-section .prose :is(img,figure){max-width:100%;break-inside:avoid}
.factory-experience .pf-section .prose table{width:100%;max-width:100%;table-layout:fixed;break-inside:auto}
.factory-experience .pf-section .prose thead{display:table-header-group}
.factory-experience .pf-section .prose tr{break-inside:avoid}
.factory-experience .pf-section .prose td,.factory-experience .pf-section .prose th{overflow-wrap:anywhere}
.factory-experience .photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm}
.factory-experience .photo-gallery figure{margin:0;break-inside:avoid;border:0;background:transparent}
.factory-experience .photo-gallery a{display:block;border:0;background:transparent}
.factory-experience .photo-gallery img{display:block;width:100%;height:33mm;max-height:none;object-fit:contain;border-radius:2mm}
.factory-experience .photo-gallery figcaption{font-size:8pt;line-height:1.6;padding:1mm 0}
.factory-experience .photo-gallery figure:nth-child(n+4){display:none!important}
.factory-experience .factory-print-gallery-note[hidden]{display:inline!important;font-size:8pt;font-weight:400;color:#526780;margin-inline-start:2mm}
.factory-experience #factory-photos{break-inside:avoid}
.factory-experience .pf-map-footer{margin:0;display:block}
.factory-experience .pf-caption{font-size:8.5pt;margin:0;line-height:1.8}
.factory-experience .business-details{gap:3mm 6mm;font-size:9pt}
.factory-experience :is(.contact-report,.report-inline,.pf-socials,.profile-community,.pf-actions,.pf-nav,.pf-correction,.profile-contact-export,.preview-notice,.factory-rating,.related-factories,.public-cta,.kargomar-jobs,#job-opportunities),.factory-experience .pf-section:has(.resource-grid),.public-flash,.compare-tray{display:none!important}

.factory-experience .pf-name img[data-print-placeholder]{display:none}
.factory-experience #factory-products{margin-bottom:0!important}

/* Repeating table footer reserves its own space and keeps PDF links clickable. */
.factory-print-frame{display:table;width:100%;border-collapse:collapse;border:0}
.factory-print-frame>tbody{display:table-row-group}
.factory-print-frame>tbody>tr{display:table-row}
.factory-print-frame>tbody>tr>td{display:table-cell;padding:0;border:0;vertical-align:top}
.factory-print-reserve[hidden]{display:table-footer-group!important}
/* Fix the whole footer so printing after scrolling cannot clip its children. */
.factory-print-footer[hidden]{display:block!important;position:fixed;bottom:0;left:0;right:0;height:6mm;z-index:1}
.factory-print-reserve td{height:16mm;padding:0;border:0;text-align:left}
.factory-print-footer a{position:absolute;bottom:1.3mm;left:0;padding:4mm 0 0;display:inline-block;color:#002b66;font-size:8pt;font-weight:500;line-height:0;text-decoration:underline;text-underline-offset:2px}

.factory-experience #factory-location{display:none!important}
.factory-print-location a{text-decoration:underline;text-underline-offset:2px}

.factory-print-footer::before{content:"";position:absolute;bottom:15mm;left:0;right:0;border-top:.3mm solid #cbd7e6}

.factory-print-footer-brand{position:absolute;bottom:1.3mm;right:0;font-size:8pt;font-weight:700;line-height:0;color:#002b66}
