/*
 * On-page SEO v71 QA layer
 * Keeps the page, shared comments and footer on one predictable grid.
 */
:root{
  --page-max:1280px;
  --page-gutter:32px;
}

html{overflow-x:hidden}
body{
  margin:0;
  color:#27222d;
  background:#fff;
  font-family:"IRANSansX",Tahoma,Arial,sans-serif;
}
body :where(button,input,select,textarea){font-family:inherit}

/* One container contract for the header, body, comments and footer. */
body .container,
.onpage .container,
.site-comments .container,
.site-footer .container{
  width:min(var(--page-max),calc(100% - (var(--page-gutter) * 2)))!important;
  max-width:var(--page-max)!important;
  margin-inline:auto!important;
  padding-inline:0!important;
}

/* Improve readability where the previous pale copy disappeared. */
.onpage p{color:#625b69}
.issue p,
.scope-card:nth-child(even) p,
.related-card small{color:#5f5866!important}
.scope-card p{color:#ece6f0}
.section-intro{max-width:820px}
.section-intro>p{max-width:720px}

/* Six capabilities: calmer spacing and no crowded text. */
.scope-grid{gap:20px}
.scope-card{
  min-height:250px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:30px;
}
.scope-card .scope-icon{flex:0 0 48px;margin-bottom:24px}
.scope-card h3{margin:0 0 12px;line-height:1.55}
.scope-card p{margin:0;font-size:14px;line-height:2}

/* Four intent/structure checks: roomy cards with a stable reading order. */
.issue-grid{gap:18px}
.issue{
  min-width:0;
  min-height:190px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  column-gap:15px;
  align-content:start;
  padding:25px;
  overflow:hidden;
}
.issue b{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  grid-row:1/3;
  margin:0;
  color:#a96219;
  background:#fff2df;
  border-radius:14px;
  font-size:11px;
  line-height:1.35;
  text-align:center;
}
.issue h3{min-width:0;margin:0 0 10px;font-size:19px;line-height:1.65}
.issue p{grid-column:2;min-width:0;margin:0;font-size:13px;line-height:2}

/* Shared comments were present in markup but their stylesheet was missing. */
.site-comments{
  padding-block:88px;
  background:linear-gradient(180deg,#fff 0%,#faf7f3 100%);
  border-top:1px solid #e8e1da;
}
.site-comments__inner{
  display:grid;
  grid-template-columns:minmax(310px,.8fr) minmax(0,1.2fr);
  gap:24px;
  align-items:stretch;
}
.site-comments__intro,
.site-comments__form{min-width:0}
.site-comments__intro{padding:38px}
.site-comments__form{padding:32px}
.site-comments__field input{min-height:46px}
.site-comments__field textarea{min-height:138px}

/* Footer: restore the common four-column structure and link contrast. */
.site-footer{
  margin:0!important;
  padding:72px 0 24px!important;
  color:#fff!important;
  background:#241e2f!important;
}
.site-footer .footer-grid{
  display:grid!important;
  grid-template-columns:minmax(280px,1.35fr) repeat(3,minmax(145px,.65fr))!important;
  gap:44px!important;
  align-items:start;
}
.site-footer .footer-brand,
.site-footer .footer-col{min-width:0}
.site-footer .footer-brand p{color:#d5ceda!important;line-height:2}
.site-footer .footer-contact :where(a,span),
.site-footer .footer-links a{
  color:#e2dce6!important;
  text-decoration:none;
}
.site-footer .footer-links a:hover{color:#eab97b!important}
.site-footer .footer-bottom{width:100%;color:#b8afbf!important}

@media(max-width:1100px){
  :root{--page-gutter:24px}
  .site-footer .footer-grid{
    grid-template-columns:1.2fr repeat(2,minmax(160px,.8fr))!important;
  }
  .site-footer .footer-col:last-child{grid-column:2/4}
}

@media(max-width:900px){
  .scope-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-comments__inner{grid-template-columns:1fr}
  .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .site-footer .footer-brand{grid-column:1/-1}
  .site-footer .footer-col:last-child{grid-column:auto}
}

@media(max-width:660px){
  :root{--page-gutter:16px}
  .issue-grid,
  .scope-grid{grid-template-columns:1fr}
  .issue{min-height:0;padding:22px}
  .scope-card{min-height:0;padding:24px}
  .site-comments{padding-block:64px}
  .site-comments__intro,
  .site-comments__form{padding:24px;border-radius:20px}
  .site-comments__grid{grid-template-columns:1fr}
  .site-comments__field--full{grid-column:auto}
  .site-footer{padding-top:56px!important}
  .site-footer .footer-grid{grid-template-columns:1fr!important;gap:30px!important}
  .site-footer .footer-brand,
  .site-footer .footer-col:last-child{grid-column:auto}
  .site-footer .footer-bottom{margin-top:38px!important}
}
