/*
  Page: Rigid Foam Shrinkage Troubleshooting - upload ready
  Path on server: /fa/blog/assets/css/rigid-foam-shrinkage-troubleshooting-fa.css
  Scope: this file contains only the styles needed by this article page,
  plus minimal scoped styling for the loaded header/footer fragments.
*/
:root {
  --navy: #071120;
  --navy-2: #0c1830;
  --blue: #0d6fd1;
  --blue-2: #1c75bc;
  --gold: #ffc451;
  --gold-dark: #f59e0b;
  --ink: #0b1730;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(38, 59, 143, 0.13);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }
body.rigid-shrinkage-page {
  margin: 0;
  direction: rtl;
  overflow-x: hidden;
  color: var(--text);
  background: #fff;
  font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.95;
  text-align: right;
  text-rendering: optimizeLegibility;
}
body.rigid-shrinkage-page main a,
body.rigid-shrinkage-page .float a { color: #0d5fc0; text-decoration: none; }
body.rigid-shrinkage-page main a:hover,
body.rigid-shrinkage-page .float a:hover { color: var(--gold-dark); }
body.rigid-shrinkage-page main a:focus-visible,
body.rigid-shrinkage-page .float a:focus-visible,
body.rigid-shrinkage-page main button:focus-visible,
body.rigid-shrinkage-page main summary:focus-visible { outline: 3px solid rgba(13, 111, 209, 0.28); outline-offset: 3px; }
body.rigid-shrinkage-page img { display: block; max-width: 100%; }
body.rigid-shrinkage-page main h1 { font-size: clamp(1.35rem, 2.3vw, 1.65rem); }
body.rigid-shrinkage-page main h2 { font-size: clamp(1.08rem, 1.45vw, 1.25rem); }
body.rigid-shrinkage-page main h3 { font-size: 1.05rem; }
body.rigid-shrinkage-page main .container { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; right: 10px; z-index: 11000; padding: 8px 12px; color: #fff !important; background: #020617; border-radius: 10px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* ===== Loaded header fragment =====
   Header HTML is loaded externally from assets/header.html.
   This page no longer restyles that fragment, so the external
   header keeps its own original visual system.
*/
#header-placeholder { min-height: 74px; position: relative; z-index: 10020; }

/* ===== Hero ===== */
.hero { position: relative; display: flex; min-height: 590px; align-items: center; overflow: hidden; padding: 52px 0 60px; color: #fff; background: linear-gradient(270deg, rgba(2,8,22,.98), rgba(5,22,50,.94) 44%, rgba(8,42,83,.88)), radial-gradient(circle at 16% 22%, rgba(14,165,233,.22), transparent 24rem), url("../../img/articles/rigid-foam-shrinkage-hero.webp") center / cover no-repeat, #06152e; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 78% 22%, rgba(245,158,11,.13), transparent 17rem), linear-gradient(90deg, rgba(2,6,23,.12), rgba(2,6,23,.34)); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(180deg, transparent, #fff 92%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 48px; align-items: center; }
.glass, .hero-copy { color: #fff; border-radius: 22px; }
.glass { position: relative; overflow: hidden; padding: 22px; border: 1px solid rgba(56,189,248,.6); background: radial-gradient(circle at 100% 0, rgba(14,165,233,.18), transparent 16rem), linear-gradient(145deg, rgba(3,12,31,.99), rgba(8,32,68,.98)); box-shadow: 0 28px 64px rgba(2,6,23,.5), 0 0 30px rgba(14,165,233,.18); }
.glass::after { content: ""; position: absolute; inset: -1px; border: 1px solid rgba(245,158,11,.25); border-radius: inherit; box-shadow: 0 0 32px rgba(56,189,248,.1) inset; pointer-events: none; }
.hero-copy { padding: 24px 26px; border: 1px solid rgba(125,211,252,.22); background: linear-gradient(145deg, rgba(4,18,43,.84), rgba(9,43,86,.72)); box-shadow: 0 24px 56px rgba(2,6,23,.3); }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; color: #fff; border: 1px solid rgba(56,189,248,.5); border-radius: 999px; background: rgba(14,165,233,.24); font-size: 12px; font-weight: 900; }
.glass h2 { margin: 12px 0 10px; color: #fff; line-height: 1.65; }
.glass p, .glass li, .hero-copy p { color: rgba(255,255,255,.9); font-size: 14px; line-height: 1.95; text-shadow: 0 1px 2px rgba(2,6,23,.45); }
.glass ul { padding-inline-start: 20px; margin: 0; }
.glass li::marker { color: var(--gold-dark); }
.hero-key { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 17px; background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); }
.hero-key__icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--gold); border: 1px solid rgba(255,196,81,.65); border-radius: 50%; font-size: 22px; font-weight: 900; }
.hero-key p { margin: 0; font-size: 13px; }
.hero-key strong { color: var(--gold) !important; }
.hero-copy h1 { max-width: 820px; margin: 16px 0 10px; color: #fff; line-height: 1.75; font-weight: 950; text-shadow: 0 10px 28px rgba(0,0,0,.38); }
.hero-copy p { max-width: 770px; margin: 0; font-size: 15px; }
.hero-meta, .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 16px; }
.hero-meta span { display: inline-flex; padding: 8px 12px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 800; }
.chip { padding: 9px 15px; color: #111827; border-radius: 12px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); box-shadow: 0 8px 18px rgba(245,158,11,.18); font-size: 13px; font-weight: 900; }

/* ===== Breadcrumb and article ===== */
.breadcrumb-section { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding: 17px 0; color: #6b7a90; font-size: 13px; }
.breadcrumb a { font-weight: 850; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; padding-top: 36px; padding-bottom: 54px; }
.article-header { margin-bottom: 22px; }
.intro { margin: 0; padding: 17px 18px; color: #21304a; border: 1px solid rgba(38,59,143,.13); border-radius: 16px; background: linear-gradient(90deg, rgba(38,59,143,.055), rgba(245,158,11,.065)); font-size: 15px; line-height: 2; }
.section { scroll-margin-top: 98px; margin-bottom: 22px; }
.section:nth-of-type(n + 3) { content-visibility: auto; contain-intrinsic-size: 620px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.section-title { margin: 0 0 12px; color: var(--ink); line-height: 1.75; font-weight: 950; }
.section-title::after, .widget-title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.lead { margin: 0 0 15px; color: #52637a; font-size: 15px; line-height: 2; }
.grid { display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); gap: 20px; align-items: start; }
.media { margin: 0; overflow: hidden; width: 100%; aspect-ratio: 16 / 10; max-height: 250px; border: 1px solid rgba(38,59,143,.12); border-radius: 17px; background: #f8fbff; box-shadow: 0 14px 32px rgba(15,23,42,.08); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center; background: #f8fbff; }
.text h3 { margin: 10px 0 8px; color: var(--ink); line-height: 1.85; }
.text p, .text li, .dl dd, .dl dt { color: #40506a; font-size: 14.5px; line-height: 2; }
.text ul { margin: 0; padding-inline-start: 20px; }
.text strong, td strong { color: #101828; }
.dl { display: grid; gap: 10px; margin: 12px 0; }
.dl div { padding: 12px; border: 1px solid rgba(38,59,143,.1); border-radius: 14px; background: #f8fbff; }
.dl dt { color: #101828; font-weight: 900; }
.dl dd { margin: 0; }
.highlight { margin-top: 14px; padding: 14px 15px; color: #17325f; border: 1px solid rgba(38,59,143,.12); border-radius: 16px; background: linear-gradient(90deg, rgba(38,59,143,.065), rgba(245,158,11,.11)); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
th { padding: 13px; color: #fff; background: #101828; font-size: 13px; text-align: right; }
td { padding: 13px; color: #475467; border-top: 1px solid rgba(38,59,143,.1); font-size: 13.5px; line-height: 1.85; vertical-align: top; }
tr:nth-child(even) td { background: #f8fbff; }
.btn { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 900; text-decoration: none !important; }
.gold { color: #111 !important; background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.blue { color: #fff !important; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 0 18px rgba(0,183,255,.2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-list summary { padding: 12px 14px; color: var(--ink); font-weight: 850; cursor: pointer; }
.faq-list p { margin: 0; padding: 0 14px 14px; color: #40506a; }
.source-card { border-inline-start: 4px solid var(--blue); }
.source-list { display: grid; gap: 8px; margin: 0; padding-inline-start: 22px; }
.source-list a { font-weight: 750; }

/* ===== Sidebar and contact ===== */
.sidebar { position: sticky; top: 92px; }
.widget { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.widget-title { margin: 0 0 13px; color: var(--ink); line-height: 1.55; font-weight: 950; }
.side-toc { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.side-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 10px; color: #42526a !important; border-radius: 10px; font-size: 13px; font-weight: 850; }
.side-toc span { display: grid; width: 24px; height: 24px; place-items: center; color: var(--blue); border-radius: 8px; background: #e9f2ff; }
.side-toc a:hover, .side-toc a.active { color: #0d5fc0 !important; background: #eef5ff; }
.info { display: grid; gap: 8px; }
.info div { padding: 10px; border: 1px solid rgba(38,59,143,.1); border-radius: 12px; background: #f8fbff; }
.label { display: block; color: #64748b; font-size: 11.5px; font-weight: 800; }
.value { display: block; margin-top: 2px; color: #14254a; font-size: 13px; font-weight: 850; }
.related-links { display: grid; }
.related-links a { padding: 8px 0; border-bottom: 1px dashed rgba(38,59,143,.12); font-size: 13px; font-weight: 750; }
.related-links a:last-child { border-bottom: 0; }
.side-cta { padding: 20px; color: #fff; border: 1px solid rgba(77,202,255,.45); border-radius: 20px; background: linear-gradient(145deg, var(--navy), #0c315f); box-shadow: 0 18px 48px rgba(0,86,160,.22), 0 0 24px rgba(0,183,255,.24); }
.side-cta h2 { margin: 0 0 10px; color: #fff; }
.side-cta p { color: rgba(255,255,255,.82); font-size: 13.5px; }
.bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px; color: #fff; border-radius: 18px; background: linear-gradient(90deg, var(--navy), #102b52); box-shadow: var(--shadow); }
.float { position: fixed; z-index: 900; left: 24px; bottom: 24px; display: grid; gap: 12px; }
.float a { display: grid; width: 48px; height: 48px; place-items: center; color: #fff !important; border-radius: 50%; box-shadow: 0 14px 28px rgba(0,0,0,.18); font-size: 13px; font-weight: 900; text-decoration: none !important; }
.whatsapp { background: #24d366; }
.phone { background: #1476d8; }

/* ===== Loaded footer fragment ===== */
#footer-placeholder .sepehr-donya-footer,
#footer-placeholder #footer,
#footer-placeholder .site-footer { padding: 30px 0; color: rgba(255,255,255,.78); background: var(--navy); }
#footer-placeholder .container { display: block; }
#footer-placeholder .row { display: grid; grid-template-columns: 1.25fr 1.2fr .9fr .9fr; gap: 24px; align-items: start; }
#footer-placeholder h5, #footer-placeholder h6, #footer-placeholder .sepehr-heading { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 900; }
#footer-placeholder p, #footer-placeholder li, #footer-placeholder .factory-info, #footer-placeholder .copyright-text { color: rgba(255,255,255,.74); font-size: 13px; line-height: 1.9; }
#footer-placeholder ul { margin: 0; padding: 0; list-style: none; }
#footer-placeholder li + li { margin-top: 7px; }
#footer-placeholder a { color: #fff !important; }
#footer-placeholder a:hover { color: var(--gold) !important; }
#footer-placeholder img { max-width: 100%; height: auto; margin-inline: auto; }
#footer-placeholder .footer-divider, #footer-placeholder hr { border: 0; border-top: 1px solid rgba(255,255,255,.14); margin: 18px 0; }
#footer-placeholder .d-flex { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
#footer-placeholder .social-links { display: flex; gap: 10px; align-items: center; }
#footer-placeholder .bi-linkedin::before { content: "in"; }
#footer-placeholder .bi-instagram::before { content: "ig"; }
#footer-placeholder .bi-youtube::before { content: "yt"; }


#footer-placeholder .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
#footer-placeholder .footer-brand { margin: 0 0 4px; color: #fff; font-weight: 900; }
#footer-placeholder .footer-text { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.9; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero { min-height: auto; padding-top: 42px; }
  .hero-inner, .layout, .grid { grid-template-columns: 1fr; }
  .hero-copy { order: -1; padding: 20px; }
  .sidebar { position: static; }
  .media { width: min(100%, 720px); max-height: none; margin-inline: auto; }
  #footer-placeholder .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  body.rigid-shrinkage-page main .container { width: min(100% - 32px, 1180px); }
  .hero { padding: 32px 0 42px; }
  .glass, .card, .widget { padding: 16px; border-radius: 16px; }
  .hero-copy { padding: 17px; border-radius: 17px; }
  .bottom { grid-template-columns: 1fr; }
  .float { left: 14px; bottom: 14px; }
  #footer-placeholder .row, #footer-placeholder .d-flex { grid-template-columns: 1fr; display: grid; }
}
@media print {
  #header-placeholder, #footer-placeholder, .sidebar, .float, .skip-link { display: none !important; }
  body.rigid-shrinkage-page { color: #000; background: #fff; }
  .layout { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* =========================================================
   HERO READABILITY PATCH - 2026-07-15
   Keeps hero typography under 20pt and forces readable text
   on dark glass surfaces.
   ========================================================= */
.rigid-shrinkage-page .hero,
.rigid-shrinkage-page .hero .glass,
.rigid-shrinkage-page .hero .hero-copy {
  color: #ffffff !important;
}

.rigid-shrinkage-page .hero .glass {
  background:
    radial-gradient(circle at 100% 0, rgba(14,165,233,.12), transparent 15rem),
    linear-gradient(145deg, rgba(3,12,31,.98), rgba(8,28,58,.96)) !important;
}

.rigid-shrinkage-page .hero .hero-copy {
  background:
    linear-gradient(145deg, rgba(4,18,43,.92), rgba(10,42,82,.86)) !important;
}

.rigid-shrinkage-page .hero h1,
.rigid-shrinkage-page .hero .hero-copy h1 {
  color: #ffffff !important;
  font-size: clamp(21px, 1.85vw, 26px) !important; /* under 20pt */
  line-height: 1.72 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.55) !important;
}

.rigid-shrinkage-page .hero h2,
.rigid-shrinkage-page .hero .glass h2 {
  color: #ffffff !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  line-height: 1.7 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.5) !important;
}

.rigid-shrinkage-page .hero p,
.rigid-shrinkage-page .hero li,
.rigid-shrinkage-page .hero .hero-copy p,
.rigid-shrinkage-page .hero .glass p,
.rigid-shrinkage-page .hero .glass li,
.rigid-shrinkage-page .hero .hero-meta span {
  color: rgba(255,255,255,.94) !important;
  font-size: 14px !important;
  line-height: 1.95 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.46) !important;
}

.rigid-shrinkage-page .hero .pill {
  color: #ffffff !important;
  font-size: 12px !important;
}

.rigid-shrinkage-page .hero .hero-key strong,
.rigid-shrinkage-page .hero .hero-key__icon {
  color: #ffc451 !important;
}

.rigid-shrinkage-page .hero .chip {
  color: #111827 !important;
  font-size: 13px !important;
  text-shadow: none !important;
}

/* =========================================================
   IMAGE DISPLAY PATCH - 2026-07-15
   Only sections 1 and 2: image box stretches to the section
   content height and the full image remains visible.
   ========================================================= */
#s1 .grid,
#s2 .grid {
  align-items: stretch;
}

#s1 .media,
#s2 .media {
  height: 100%;
  min-height: 100%;
  max-height: none !important;
  aspect-ratio: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

#s1 .media img,
#s2 .media img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: #ffffff;
}

@media (max-width: 991px) {
  #s1 .media,
  #s2 .media {
    min-height: auto;
    aspect-ratio: 16 / 10 !important;
  }
}

