/* WordPress compatibility layer (admin bar, core classes). Copyright (c) AliReza EbadiMajd - https://ebadimajd.ir */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .header { top: 0; } }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #000; display: block;
  height: auto; padding: 12px 20px; position: fixed; right: 8px; top: 8px; width: auto; z-index: 100000;
}
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .gallery-caption { max-width: 100%; }
.bl-article img { max-width: 100%; height: auto; border-radius: 18px; }
.bl-article h3 { font-size: 18px; font-weight: 900; margin: 24px 0 10px; }
.bl-article figure { margin: 18px 0; }
.bl-article figcaption, .bl-article .wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.bl-article a:not(.btn) { color: var(--brand); }
.bl-article blockquote { margin: 18px 0; padding: 14px 18px; border-inline-start: 5px solid var(--brand); background: var(--brand-soft); border-radius: 14px; }
.bl-cover img { display: block; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }

/* ---- Article content: plain h2/h3, ul/ol, hr and tables get the theme look (no classes needed in the post) ---- */
.bl-article > p:first-child { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 2.1; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px dashed var(--brand-soft-2); }
.bl-article ul, .bl-article ol { list-style: none; display: grid; gap: 10px; margin: 6px 0 16px; padding: 0; counter-reset: avatli; }
.bl-article ul li, .bl-article ol li { position: relative; padding: 10px 14px; padding-inline-start: 50px; border-radius: 16px; background: var(--brand-soft); font-size: 15px; line-height: 1.9; }
.bl-article ul li::before, .bl-article ol li::before { position: absolute; inset-inline-start: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; background-image: var(--grad); }
.bl-article ul > li::before { content: "\2713"; }
.bl-article ol > li { counter-increment: avatli; }
.bl-article ol > li::before { content: counter(avatli); }
.bl-article li ul, .bl-article li ol { margin: 8px 0 0; }
.bl-article li li { background: rgba(255,255,255,.75); }
.bl-article h3 { color: var(--navy); }
.bl-article hr { border: 0; height: 0; border-top: 1px dashed var(--brand-soft-2); margin: 26px 0; }
.bl-article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.bl-article th, .bl-article td { padding: 10px 14px; border: 1px solid var(--brand-soft-2); text-align: start; }
.bl-article th { background: var(--brand-soft); font-weight: 900; color: var(--navy); }
.bl-article pre, .bl-article code { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; }
.bl-article pre { overflow-x: auto; padding: 14px 16px; border-radius: 16px; background: #1f1b3a; color: #f4f1ff; margin: 16px 0; }
.bl-article :not(pre) > code { padding: 2px 7px; border-radius: 8px; background: var(--brand-soft); font-size: .92em; }

/* Skip link + no-JS notice + search form (404 / empty results) */
.skip-link:focus { right: 8px; top: 8px; border-radius: 12px; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.od-nojs { padding: 14px 16px; border-radius: 16px; background: var(--brand-soft); font-weight: 700; line-height: 2; }
.od-nojs a { color: var(--brand); text-decoration: underline; }
.search-form { display: flex; gap: 8px; margin: 16px 0 0; max-width: 460px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--brand-soft-2); font: inherit; background: #fff; }
.search-form .search-submit { padding: 12px 20px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* Order form: with three payment methods (card, online, door) the third one spans the full row. */
.od-opts:has(> .od-opt:nth-child(3)) > .od-opt:nth-child(3) { grid-column: 1 / -1; }

/* Order form plan boxes (پایه / خانواده / سازمانی): always three in one row, never a full-width third box */
.od-card .od-pl__opts > .od-opt:nth-child(n) { grid-column: auto !important; }
