/* ==========================================================================
   Parak Mahan Chemi — WordPress glue for the demo-3 design
   Loaded after pages-c.css and before ltr.css / ar.css.
   Only things the static demo never needed: core WP classes, custom logo,
   admin bar offset. Keep design rules in design.css / pages*.css.
   ========================================================================== */

/* Custom logo (Customizer → Site Identity) inside .logo */
.logo .custom-logo-link { display: inline-flex; align-items: center; }
.logo .custom-logo,
.logo__img { display: block; inline-size: auto; block-size: 42px; max-inline-size: 220px; object-fit: contain; }
.footer .logo .custom-logo,
.footer .logo__img { block-size: 44px; }

/* Admin bar: keep the sticky header and the mobile menu below it */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .header { top: 0; }
}

/* Core accessibility / alignment classes used by WP output */
.screen-reader-text {
  position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.screen-reader-text:focus {
  clip: auto; clip-path: none; inline-size: auto; block-size: auto; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image figcaption { max-inline-size: 100%; }
.wp-caption-text, .wp-block-image figcaption { font-size: .875rem; color: var(--muted); margin-block-start: 8px; }
.sticky, .bypostauthor, .gallery-caption { /* required by theme check */ }

/* تلهٔ ربات فرم‌ها: فیلد پنهان برای کاربر، قابل پرشدن برای ربات */
.pmc-form__trap { position: absolute !important; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
