/* Brand editorial, technical tables and catalog cards. Loaded only on the four engine-brand pages. */
/* v1.12.93 — single, authoritative layout for legacy brand editorial content, tables and PDF catalogs. */
body.pd-engine-brand-page .pd-brand-page-content,
body.pd-engine-brand-page .pd-page-content-inner.pd-brand-page-content{
  width:100%;max-width:none;min-width:0;margin:0;padding:0;
}
/* Elementor page output has no .pd-container wrapper; give that path the same centered canvas. */
body.pd-engine-brand-page .pd-brand-page-content:not(.pd-page-content-inner){
  width:min(1280px,calc(100% - 40px));max-width:1280px;margin-inline:auto;padding-block:26px 54px;
}
body.pd-engine-brand-page .pd-page-head .pd-container,
body.pd-engine-brand-page .pd-page-content>.pd-container{
  width:min(1280px,calc(100% - 40px));max-width:1280px;
}
body.pd-engine-brand-page .pd-page-content{padding-block:26px 54px}
body.pd-engine-brand-page .pd-page-content-inner.pd-brand-page-content{
  border:0;border-radius:0;background:transparent;box-shadow:none;
}
body.pd-engine-brand-page .pd-brand-landing{
  display:flex;flex-direction:column;gap:22px;width:100%;max-width:none;min-width:0;margin:0;
}
body.pd-engine-brand-page .pd-brand-section,
body.pd-engine-brand-page .pd-brand-hero,
body.pd-engine-brand-page .pd-brand-source,
body.pd-engine-brand-page .pd-brand-final-cta{width:100%;min-width:0;box-sizing:border-box}

/* Engine model matrix: native desktop table, contained mobile cards. */
.pd-brand-engine-model-table{width:100%;min-width:0;overflow:hidden}
.pd-brand-engine-model-table .pd-brand-table-scroll{
  width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;
}
.pd-brand-engine-table{
  display:table;width:100%;min-width:840px;table-layout:fixed;border-collapse:separate;border-spacing:0;
  color:#344f57;font-size:.78rem;line-height:1.85;
}
.pd-brand-engine-table th:first-child{width:32%;min-width:0;text-align:right}
.pd-brand-engine-table th:nth-child(2){width:20%}
.pd-brand-engine-table th:nth-child(3),.pd-brand-engine-table th:nth-child(4){width:13%}
.pd-brand-engine-table th:nth-child(5){width:22%}
.pd-brand-engine-table th,.pd-brand-engine-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.pd-brand-engine-table thead th{padding:13px 10px;background:#eaf2f3;color:#214b56;font-size:.76rem;font-weight:900}
.pd-brand-engine-table tbody tr:nth-child(even){background:#f8fafb}
.pd-brand-engine-table tbody tr:hover{background:#f0f7f7}
.pd-brand-engine-table tbody th{font-size:.77rem;line-height:1.9;text-align:right}
.pd-brand-engine-table tbody th a{display:inline-block;color:#1e5968;font-weight:850;text-decoration:none}
.pd-brand-engine-table tbody th a:hover{text-decoration:underline;text-underline-offset:3px}
.pd-brand-engine-table td bdi{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

/* Editorial area: typography, images, lists and callouts share one consistent rhythm. */
.pd-brand-legacy-content{padding:clamp(18px,2.6vw,30px)}
.pd-brand-legacy-content .pd-brand-section-head{margin-bottom:16px}
.pd-brand-legacy-prose{
  width:100%;max-width:100%;min-width:0;color:#405860;direction:rtl;font-size:.9rem;line-height:2.05;
  overflow-wrap:anywhere;word-break:normal;box-sizing:border-box;
  text-align:justify;text-justify:inter-word;
}
.pd-brand-legacy-prose>:first-child{margin-block-start:0}
.pd-brand-legacy-prose>:last-child{margin-block-end:0}
.pd-brand-legacy-prose :is(h1,h2,h3,h4,h5,h6){color:#183d47;font-weight:900;line-height:1.85;overflow-wrap:anywhere;text-align:right}
.pd-brand-legacy-prose h1{margin:1.5em 0 .65em;font-size:clamp(1.3rem,2.2vw,1.7rem)}
.pd-brand-legacy-prose h2{margin:2em 0 .75em;padding-inline-start:13px;border-inline-start:3px solid #e6a526;font-size:clamp(1.08rem,1.7vw,1.3rem)}
.pd-brand-legacy-prose h3{margin:1.45em 0 .55em;color:#244b56;font-size:1.02rem}
.pd-brand-legacy-prose h4{margin:1.25em 0 .5em;font-size:.96rem}
.pd-brand-legacy-prose :is(p,li,dd){color:#4f666d;font-size:.89rem;line-height:2.08;text-align:justify;text-justify:inter-word}
.pd-brand-legacy-prose p{margin:0 0 1.1em}
.pd-brand-legacy-prose :is(ul,ol){margin:1em 0 1.35em;padding-inline-start:1.7em}
.pd-brand-legacy-prose li{margin:.35em 0;padding-inline-start:.15em}
.pd-brand-legacy-prose a:not(.pd-brand-download-link):not(.pd-brand-price-quote){color:#14596a;text-decoration:underline;text-decoration-color:#bfd0d4;text-underline-offset:3px}
.pd-brand-legacy-prose a:hover{text-decoration-color:currentColor}
.pd-brand-legacy-prose :is(img,video,iframe){display:block;max-width:100%;height:auto;margin:1.1em auto;border-radius:11px}
.pd-brand-legacy-prose figure{max-width:100%;margin:1.5em auto;text-align:center}
.pd-brand-legacy-prose figcaption{margin:.55em auto 0;color:#718187;font-size:.75rem;line-height:1.8}
.pd-brand-legacy-prose :is(.alignleft,.alignright){float:none;display:block;max-width:100%;margin:1.2em auto}
.pd-brand-legacy-prose blockquote{margin:1.5em 0;padding:14px 18px;border-inline-start:3px solid #e6a526;border-radius:10px;background:#f6f9f9;color:#405860}
.pd-brand-legacy-prose hr{height:1px;margin:2em 0;border:0;background:#e3eaec}
.pd-brand-legacy-prose .pd-grid{margin-block:16px}
.pd-brand-legacy-prose :is(.wp-block-group,.notice,.info-box){max-width:100%;padding:clamp(13px,2vw,20px);border:1px solid #e1e9eb;border-radius:12px;background:#fbfcfc}
.pd-brand-legacy-prose :is(.wp-block-table,.table-responsive,.table-wrap){width:100%;max-width:100%;margin:1.3em 0}

/* Technical and historic tables: full content width on desktop; only the table wrapper scrolls on mobile. */
.pd-brand-legacy-prose .pd-brand-legacy-table-scroll,
.pd-brand-legacy-prose .pd-brand-price-table-wrap{
  display:block;width:100%;max-width:100%;min-width:0;margin:18px 0 24px;box-sizing:border-box;
}
.pd-brand-legacy-prose .pd-brand-legacy-table-scroll{
  overflow-x:auto;overflow-y:hidden;border:1px solid #e0e9eb;border-radius:13px;background:#fff;
  box-shadow:0 5px 16px rgba(18,54,64,.04);scrollbar-width:thin;overscroll-behavior-inline:contain;
}
.pd-brand-legacy-prose .pd-brand-legacy-table-scroll>table,
.pd-brand-legacy-prose .wp-block-table>table,
.pd-brand-legacy-prose table:not(.pd-brand-price-table){
  width:100%;min-width:620px;max-width:none;margin:0;border:0;border-collapse:separate;border-spacing:0;
  table-layout:auto;background:#fff;color:#344f57;font-size:.82rem;line-height:1.85;
}
.pd-brand-legacy-prose :is(.pd-brand-legacy-table-scroll,.wp-block-table,table:not(.pd-brand-price-table)) :is(th,td){
  min-width:0;padding:11px 13px;border:0;border-bottom:1px solid #e7edef;border-inline-end:1px solid #edf1f2;
  text-align:start;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;
}
.pd-brand-legacy-prose :is(.pd-brand-legacy-table-scroll,.wp-block-table,table:not(.pd-brand-price-table)) :is(thead th,tr:first-child th,tr:first-child td){background:#eaf2f3;color:#214b56;font-weight:900}
.pd-brand-legacy-prose .pd-brand-legacy-table-scroll tr:nth-child(even){background:#f8fafb}
.pd-brand-legacy-prose .pd-brand-legacy-table-scroll tr:last-child>*{border-bottom:0}

/* Price table: same full-width table system with a calm price and quote hierarchy. */
.pd-brand-legacy-prose .pd-brand-price-table-wrap{
  padding:clamp(10px,1.5vw,16px);border:1px solid #dce7e9;border-radius:15px;
  background:linear-gradient(145deg,#fff 0%,#f8fbfb 100%);box-shadow:0 7px 20px rgba(18,54,64,.05);
}
.pd-brand-price-table-scroll{
  width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;border:1px solid #e1e9eb;border-radius:11px;
  background:#fff;scrollbar-width:thin;overscroll-behavior-inline:contain;
}
.pd-brand-price-table{
  display:table;width:100%;min-width:760px;max-width:none;margin:0;border:0;border-collapse:separate;border-spacing:0;
  table-layout:auto;text-align:center;font-size:.82rem;line-height:1.9;color:#344f57;
}
.pd-brand-price-table th,.pd-brand-price-table td{min-width:0;padding:12px 13px;border:0;border-bottom:1px solid #e8eef0;vertical-align:middle;white-space:normal}
.pd-brand-price-table thead th{background:#eaf2f3;color:#214b56;font-size:.78rem;font-weight:900}
.pd-brand-price-table tbody tr:nth-child(even){background:#f8fafb}
.pd-brand-price-table tbody tr:hover{background:#f1f7f8}
.pd-brand-price-table tbody td:first-child,.pd-brand-price-table tbody th:first-child{text-align:right;font-weight:850;color:#214b56}
.pd-brand-price-table tbody tr:last-child>*{border-bottom:0}
.pd-brand-live-price{display:flex;flex-direction:column;align-items:center;gap:2px;white-space:nowrap;color:#183f49;font-variant-numeric:tabular-nums}
.pd-brand-live-price strong{font-size:.95rem;font-weight:950;letter-spacing:-.02em}
.pd-brand-live-price small{font-size:.68rem;color:#72858a;font-weight:750}
.pd-brand-price-on-request{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border:1px solid #e8d8ae;border-radius:8px;background:#fff9eb;color:#87611d;font-size:.75rem;font-weight:850;white-space:nowrap}
.pd-brand-price-quote{display:inline-flex;align-items:center;justify-content:center;margin-top:6px;padding:6px 10px;border:1px solid #d7e5e8;border-radius:8px;background:#f4f8f9;color:#205465;font-size:.7rem;font-weight:850;text-decoration:none;white-space:nowrap}
.pd-brand-price-quote:hover{border-color:#a9c5cc;background:#eaf3f5}
.pd-brand-price-table-note{margin:10px 2px 0;color:#708187;font-size:.73rem;line-height:1.9}

/* v1.12.96 — one consistent catalogue-card system; real grid on every viewport. */
.pd-brand-legacy-prose .pd-brand-download-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch;
  width:100%;max-width:100%;margin:14px 0 24px;padding:0;direction:rtl;box-sizing:border-box;
}
.pd-brand-legacy-prose :is(a,span).pd-brand-download-link{
  display:flex;align-items:center;gap:10px;width:100%;max-width:100%;min-width:0;min-height:58px;
  margin:0;padding:10px 12px;border:1px solid #dce7e9;border-inline-start:3px solid #e3a328;
  border-radius:11px;background:#fff;color:#214b56;font-size:.8rem;font-weight:850;line-height:1.75;
  text-align:right;text-decoration:none;overflow-wrap:anywhere;box-shadow:0 3px 11px rgba(18,54,64,.04);
  box-sizing:border-box;transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.pd-brand-legacy-prose a.pd-brand-download-link{cursor:pointer}
.pd-brand-legacy-prose a.pd-brand-download-link:hover{transform:translateY(-1px);border-color:#b9cfd4;background:#f5fafb;box-shadow:0 6px 15px rgba(18,54,64,.07)}
.pd-brand-legacy-prose :is(a,span).pd-brand-download-link::before{
  content:"PDF";display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:34px;
  border-radius:8px;background:#eaf2f3;color:#1b5966;font-size:.67rem;font-weight:950;direction:ltr;
}
.pd-brand-legacy-prose a.pd-brand-download-link::after{
  content:"دانلود";flex:0 0 auto;margin-inline-start:auto;color:#52717a;font-size:.7rem;font-weight:850;white-space:nowrap;
}
.pd-brand-legacy-prose .pd-brand-download-pending{
  cursor:default;background:#f8fafb;color:#65777d;border-style:dashed;box-shadow:none;
}
.pd-brand-legacy-prose .pd-brand-download-pending::after{
  content:"در انتظار انتقال";flex:0 0 auto;margin-inline-start:auto;color:#8a713d;font-size:.66rem;font-weight:800;white-space:nowrap;
}
.pd-brand-legacy-prose .pd-brand-download-single{margin:8px 0 14px;text-align:right}
.pd-brand-legacy-prose .pd-brand-download-single>.pd-brand-download-link{display:inline-flex;width:auto;max-width:100%;}
.pd-brand-legacy-prose h2:has(+ .pd-brand-download-grid),
.pd-brand-legacy-prose h3:has(+ .pd-brand-download-grid){margin-bottom:10px}

@media(max-width:900px){
  .pd-brand-legacy-prose .pd-brand-download-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.pd-engine-brand-page .pd-brand-landing{gap:16px}
  body.pd-engine-brand-page .pd-page-head .pd-container,
  body.pd-engine-brand-page .pd-page-content>.pd-container{width:calc(100% - 28px)}
}
@media(max-width:700px){
  body.pd-engine-brand-page .pd-page-content{padding-block:18px 34px}
  body.pd-engine-brand-page .pd-brand-page-content:not(.pd-page-content-inner){width:calc(100% - 24px);padding-block:18px 34px}
  body.pd-engine-brand-page .pd-brand-landing{gap:13px}
  .pd-brand-engine-model-table .pd-brand-table-scroll{overflow:visible;border:0;border-radius:0}
  .pd-brand-engine-table{display:block;width:100%;min-width:0;table-layout:auto;border-collapse:separate;border-spacing:0 9px}
  .pd-brand-engine-table caption{display:block;padding:4px 2px 10px;text-align:right}
  .pd-brand-engine-table thead{display:none}
  .pd-brand-engine-table tbody{display:block;width:100%}
  .pd-brand-engine-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0 0 10px;padding:10px;border:1px solid #dfe8ea;border-radius:11px;background:#fff;box-shadow:0 4px 12px rgba(18,54,64,.035)}
  .pd-brand-engine-table tbody th[scope="row"]{display:block;grid-column:1/-1;width:100%;min-width:0;padding:5px 5px 11px;border:0;border-bottom:1px solid #e7edef;text-align:right;font-size:.8rem}
  .pd-brand-engine-table tbody td{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;padding:9px 7px;border:0;border-bottom:1px solid #edf1f2;text-align:right;font-size:.76rem}
  .pd-brand-engine-table tbody td::before{content:attr(data-label);display:block;margin-bottom:4px;color:#73878c;font-size:.66rem;font-weight:800;line-height:1.5}
  .pd-brand-engine-table tbody tr td:last-child,.pd-brand-engine-table tbody tr td:nth-last-child(2){border-bottom:0}
  .pd-brand-related-link-grid{grid-template-columns:minmax(0,1fr)}
  .pd-brand-legacy-content{padding:15px}
  .pd-brand-legacy-prose :is(p,li,dd){font-size:.83rem}
  .pd-brand-legacy-prose .pd-brand-legacy-table-scroll,
  .pd-brand-price-table-scroll{max-width:100%;overflow-x:auto}
  .pd-brand-legacy-prose .pd-brand-legacy-table-scroll>table,
  .pd-brand-price-table{min-width:680px}
  .pd-brand-legacy-prose .pd-brand-download-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .pd-brand-legacy-prose :is(a,span).pd-brand-download-link{min-height:52px;padding:8px;font-size:.74rem;gap:7px}
}
@media(max-width:640px){
  body.pd-engine-brand-page .pd-page-head .pd-container,
  body.pd-engine-brand-page .pd-page-content>.pd-container{width:calc(100% - 24px)}
  .pd-brand-legacy-prose :is(h2,h3){overflow-wrap:anywhere}
}
@media(max-width:340px){
  .pd-brand-legacy-prose .pd-brand-download-grid{grid-template-columns:minmax(0,1fr)}
}

/* v1.12.99 — keep manufacturer references tidy when a brand has a current update link. */
.pd-brand-source-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-width:0}
.pd-brand-source-links a{display:inline-flex;align-items:center;line-height:1.9}
@media(max-width:640px){.pd-brand-source-links{flex-direction:column;align-items:flex-start;gap:6px}}
