/* HaParsi — static rug buying guide. Loaded only on template-rug-guide.php */
.hp-rug-guide{background:var(--white);color:var(--ink)}
.hp-guide-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:42px;align-items:center;padding-block:54px 38px}
.hp-guide-breadcrumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--steel);font-size:.88rem;margin-bottom:18px}
.hp-guide-breadcrumb a{text-decoration:underline;text-underline-offset:3px}
.hp-guide-hero h1{max-width:16ch;margin-bottom:18px}
.hp-guide-deck{font-size:1.16rem;color:var(--steel);max-width:62ch}
.hp-guide-answer{margin-top:20px;padding:17px 19px;border-inline-start:4px solid var(--ember);background:var(--ember-soft);border-radius:var(--rad-s);line-height:1.75}
.hp-guide-meta{margin-top:16px;color:var(--steel);font-size:.9rem}
.hp-guide-figure{margin:0}
.hp-guide-figure img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--rad);background:var(--mist2)}
.hp-guide-hero-media .hp-guide-figure img{aspect-ratio:4/3;box-shadow:var(--sh)}
.hp-guide-figure figcaption{font-size:.88rem;color:var(--steel);margin-top:8px;line-height:1.55}
.hp-guide-img-missing{padding:18px;border:1px dashed var(--steel2);border-radius:var(--rad-s);background:var(--mist2);color:var(--steel)}
.hp-guide-layout{display:grid;grid-template-columns:250px minmax(0,820px);gap:54px;justify-content:center;padding-block:28px 80px}
.hp-guide-toc{align-self:start;position:sticky;top:92px;border:1px solid var(--mist);border-radius:var(--rad);padding:18px;background:#fff;box-shadow:var(--sh-s);font-size:.9rem}
.hp-guide-toc strong{display:block;margin-bottom:8px;font-family:var(--ff-disp);font-size:1.08rem}
.hp-guide-toc ol{margin:0;padding-inline-start:22px}
.hp-guide-toc li{margin:5px 0;color:var(--steel)}
.hp-guide-toc a:hover{color:var(--ember-deep)}
.hp-guide-content>section{scroll-margin-top:100px;padding-block:34px;border-top:1px solid var(--mist)}
.hp-guide-content>section:first-child{border-top:0;padding-top:8px}
.hp-guide-content h2{margin-bottom:16px}
.hp-guide-content h3{margin-top:24px;margin-bottom:9px}
.hp-guide-content p,.hp-guide-content li{max-width:72ch}
.hp-guide-content ul:not(.hp-guide-checklist ul){list-style:disc;padding-inline-start:24px;margin:0 0 18px}
.hp-guide-content li{margin-bottom:7px}
.hp-guide-content a:not(.mrv-btn){color:var(--ember-deep);text-decoration:underline;text-underline-offset:3px}
.hp-guide-callout{padding:18px 20px;margin:22px 0;border:1px solid #ffd9b7;background:var(--ember-soft);border-radius:var(--rad-s)}
.hp-guide-table-wrap{overflow-x:auto;margin:22px 0 26px;border:1px solid var(--mist);border-radius:var(--rad-s)}
.hp-guide-table{width:100%;border-collapse:collapse;min-width:620px;background:#fff}
.hp-guide-table th,.hp-guide-table td{text-align:right;vertical-align:top;padding:13px 14px;border-bottom:1px solid var(--mist)}
.hp-guide-table th{font-family:var(--ff-disp);background:var(--mist2);white-space:nowrap}
.hp-guide-table tr:last-child td{border-bottom:0}
.hp-guide-mistakes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hp-guide-mistakes>div{padding:16px;border:1px solid var(--mist);border-radius:var(--rad-s);background:#fff}
.hp-guide-mistakes strong,.hp-guide-mistakes span{display:block}
.hp-guide-mistakes span{margin-top:5px;color:var(--steel);font-size:.94rem}
.hp-guide-checklist{background:var(--mist2);border-radius:var(--rad);padding:28px!important;border:0!important}
.hp-guide-checklist ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.hp-guide-checklist li{position:relative;padding-inline-start:30px}
.hp-guide-checklist li:before{content:"✓";position:absolute;inset-inline-start:0;top:0;color:var(--ok);font-weight:800}
.hp-guide-faq details{border-bottom:1px solid var(--mist)}
.hp-guide-faq summary{cursor:pointer;font-weight:700;padding:16px 0}
.hp-guide-faq details>div{padding-bottom:10px;color:var(--steel)}
.hp-guide-cta{text-align:center;background:var(--ink);color:#fff;border-radius:var(--rad);padding:34px!important;border:0!important;margin-top:20px}
.hp-guide-cta p{margin-inline:auto;color:var(--mist)}
.hp-guide-cta .mrv-btn{margin-top:8px}

.hp-guide-next{text-align:center;background:var(--mist2);border-radius:var(--rad);padding:30px!important;border:0!important;margin-top:18px}
.hp-guide-next p{margin-inline:auto}
.hp-guide-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:18px}
@media(max-width:900px){
 .hp-guide-hero{grid-template-columns:1fr;gap:24px;padding-top:34px}
 .hp-guide-hero h1{max-width:none}
 .hp-guide-layout{grid-template-columns:1fr;gap:24px}
 .hp-guide-toc{position:static;columns:2}
 .hp-guide-toc strong{column-span:all}
}
@media(max-width:640px){
 .hp-guide-hero{padding-block:28px 18px}
 .hp-guide-deck{font-size:1.05rem}
 .hp-guide-layout{padding-block:18px 50px}
 .hp-guide-toc{columns:1}
 .hp-guide-content>section{padding-block:27px}
 .hp-guide-mistakes{grid-template-columns:1fr}
 .hp-guide-checklist,.hp-guide-cta{padding:22px!important}
 .hp-guide-figure img{aspect-ratio:4/3}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ========================================================================
   v1.9.0 — Mobile hardening for both rug guides
   ===================================================================== */
.hp-rug-guide,
.hp-rug-guide .mrv-wrap,
.hp-guide-hero,
.hp-guide-hero-copy,
.hp-guide-hero-media,
.hp-guide-layout,
.hp-guide-toc,
.hp-guide-content,
.hp-guide-content > section,
.hp-guide-figure,
.hp-guide-table-wrap,
.hp-guide-mistakes,
.hp-guide-checklist,
.hp-guide-faq,
.hp-guide-cta,
.hp-guide-next{min-width:0;max-width:100%}
.hp-rug-guide{width:100%;overflow-x:hidden}
.hp-guide-content{width:100%;overflow-wrap:anywhere}
.hp-guide-content img,.hp-guide-figure img{max-width:100%;height:auto}
.hp-guide-table-wrap{width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
.hp-guide-table{max-width:none}

@media(max-width:640px){
  .hp-rug-guide .mrv-wrap{padding-inline:16px}
  .hp-guide-hero{width:100%;gap:18px;padding-block:22px 14px}
  .hp-guide-hero-copy,.hp-guide-hero-media{width:100%;min-width:0}
  .hp-guide-hero h1{font-size:clamp(1.85rem,9vw,2.55rem);line-height:1.08;overflow-wrap:anywhere}
  .hp-guide-deck{font-size:1rem;line-height:1.65}
  .hp-guide-answer{padding:14px 15px;margin-top:16px}
  .hp-guide-meta{font-size:.82rem}
  .hp-guide-hero-media .hp-guide-figure img,.hp-guide-figure img{aspect-ratio:16/11;border-radius:12px}
  .hp-guide-layout{display:block;width:100%;padding-block:14px 44px}
  .hp-guide-toc{width:100%;margin:0 0 18px;padding:15px 16px;border-radius:12px;columns:1;position:static}
  .hp-guide-toc ol{padding-inline-start:20px}
  .hp-guide-content{width:100%}
  .hp-guide-content>section{padding-block:24px;width:100%}
  .hp-guide-content h2{font-size:clamp(1.4rem,7vw,1.85rem);line-height:1.18}
  .hp-guide-content h3{font-size:1.12rem}
  .hp-guide-content p,.hp-guide-content li{max-width:100%;line-height:1.72}
  .hp-guide-callout{padding:15px 16px;margin:18px 0}
  .hp-guide-table-wrap{margin-inline:0;border-radius:10px;box-shadow:inset -10px 0 16px -18px rgba(0,0,0,.4)}
  .hp-guide-table{min-width:520px;font-size:.87rem}
  .hp-guide-table th,.hp-guide-table td{padding:10px 11px;white-space:normal}
  .hp-guide-mistakes{grid-template-columns:1fr}
  .hp-guide-checklist,.hp-guide-cta,.hp-guide-next{padding:20px 16px!important;border-radius:12px}
  .hp-guide-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .hp-guide-actions .mrv-btn,.hp-guide-cta .mrv-btn{width:100%;justify-content:center;text-align:center}
  .hp-guide-faq summary{padding:14px 0;line-height:1.45}
}
