/* An article of the magazine (article.php), on top of magazine.css: the text is what the page is for. A line length
   comfortable to read, one look for what years of pasting left in many, no boxes except where the text asks for one. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.pta { padding-bottom: 72px; }

/* how far along: no script, where the browser can do it alone */
@supports (animation-timeline: scroll()) {
	.pta-progress { position: fixed; z-index: 10000; inset: 0 0 auto; height: 3px; background: var(--ps-primary); transform-origin: right; animation: pta-progress linear both; animation-timeline: scroll(root); pointer-events: none; }
	@keyframes pta-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* the head: a tinted band, as the magazine's */
.pta-head { padding: 14px 0 44px; border-bottom: 1px solid var(--ptm-edge); background: var(--ptm-tint); }
.pta-crumbs p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pta-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; gap: 56px; margin-top: 26px; }
.ptm .pta-head__title { margin-top: 10px; color: var(--ptm-ink); font-size: clamp(25px, 2.7vw, 37px); font-weight: 800; line-height: 1.5; }
.ptm .pta-head__note { margin-top: 14px; color: var(--ptm-text); font-size: 16px; line-height: 2; }
.ptm .pta-by { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ptm-edge); color: var(--ptm-muted); font-size: 13px; line-height: 1.8; list-style: none; }
.pta-by li { display: flex; align-items: center; gap: 6px; }
.pta-by svg { flex: none; color: var(--ps-primary); }
.pta-by b { color: var(--ptm-ink); font-weight: 600; }
.pta-by a { color: var(--ps-primary); font-weight: 600; text-decoration: none; }
.pta-by a:hover { color: var(--ps-primary-dark); }
.pta-head__pic { margin: 0; overflow: hidden; border-radius: 12px; background: #e3ecf4; }
.pta-head__pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* the text and its contents beside it */
.pta-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 40px; margin-top: 44px; }
.pta-grid--wide { grid-template-columns: minmax(0, 840px); justify-content: center; }
.pta-main { grid-column: 1; grid-row: 1; min-width: 0; }
.pta-rail { position: sticky; top: 92px; grid-column: 2; grid-row: 1; min-width: 0; }
.pta-toc { padding: 18px 16px 10px; border: 1px solid var(--ptm-line); border-radius: 12px; background: #fff; }
.pta-toc summary { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; border-bottom: 1px solid var(--ptm-line); color: var(--ptm-ink); font-size: 15px; font-weight: 800; line-height: 1.6; list-style: none; }
.pta-toc summary svg { flex: none; color: var(--ps-primary); }
.pta-toc summary::-webkit-details-marker { display: none; }
.pta-toc ol { max-height: max(200px, calc(100vh - 480px)); margin: 0; padding: 6px 0 0; overflow-y: auto; counter-reset: pta-toc; list-style: none; scrollbar-width: thin; }
.pta-toc li { margin: 0; counter-increment: pta-toc; }
.pta-toc li.is-sub { counter-increment: none; }
.pta-toc a { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border-radius: 8px; color: var(--ptm-text); font-size: 13.5px; font-weight: 500; line-height: 1.75; text-decoration: none; transition: color .15s ease; }
.pta-toc a::before { content: counter(pta-toc, persian); display: flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ptm-soft); color: var(--ps-primary); font-size: 12px; font-weight: 700; line-height: 1; transition: background-color .15s ease, color .15s ease; }
.pta-toc .is-sub a { padding-inline-start: 36px; font-size: 13px; }
.pta-toc .is-sub a::before { content: none; }
.pta-toc a:hover { color: var(--ps-primary); }
.pta-toc a.is-on { color: var(--ps-primary); font-weight: 700; }
.pta-toc a.is-on::before { background: var(--ps-primary); color: #fff; }
.ptm-consult--rail { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 20px; }
.ptm-consult--rail .ptm-consult__icon { width: 44px; height: 44px; }
.ptm .ptm-consult--rail .ptm-consult__title { font-size: 16px; }
.ptm .ptm-consult--rail .ptm-consult__note { font-size: 13px; }
.ptm-consult--rail .ptm-consult__actions { flex-direction: column; width: 100%; gap: 8px; }
.ptm-consult--inline { display: none; margin-top: 36px; }
.ptm-consult--inline.is-always { display: flex; }

.pta-entry { color: #2f3d4a; font-size: 17px; line-height: 2.1; overflow-wrap: anywhere; }
.pta-entry h2, .pta-entry h3, .pta-entry h4 { color: var(--ptm-ink); scroll-margin-top: 90px; }
.pta-entry h2 { margin: 48px 0 14px; font-size: 25px; font-weight: 800; line-height: 1.6; }
.pta-entry h2::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 10px; background: var(--ps-primary); vertical-align: 1px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M5 0h4v5h5v4H9v5H5V9H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pta-entry h3 { margin: 34px 0 10px; font-size: 20px; font-weight: 700; line-height: 1.65; }
.pta-entry h4 { margin: 26px 0 8px; font-size: 17.5px; font-weight: 700; line-height: 1.7; }
.pta-entry > :first-child { margin-top: 0; }
.pta-entry p { margin: 0 0 18px; }
.pta-entry :is(p, li, .pta-note, .ps-accordion__content, .elementor-tab-content):not(.pta-c) { text-align: justify; text-justify: inter-word; }
.pta-entry > p:first-of-type { color: #22313f; font-size: 18px; }
.pta-entry .pta-c { text-align: center; }
.pta-entry strong, .pta-entry b { color: var(--ptm-ink); font-weight: 700; }
.pta-entry a { color: var(--ps-primary); text-decoration: underline; text-decoration-color: rgba(3, 115, 200, .35); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .15s ease; }
.pta-entry a:hover { text-decoration-color: currentColor; }
.pta-entry a strong { color: inherit; }
.pta-entry ul, .pta-entry ol { margin: 0 0 20px; padding-inline-start: 22px; }
.pta-entry li { margin-bottom: 8px; padding-inline-start: 4px; }
.pta-entry li > ul, .pta-entry li > ol { margin: 8px 0 0; }
.pta-entry li::marker { color: var(--ps-primary); font-weight: 700; }
.pta-entry img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 10px; }
.pta-entry .wp-caption { max-width: 100%; margin: 28px auto; }
.pta-entry .wp-caption img { margin-bottom: 8px; }
.pta-entry .wp-caption-text, .pta-entry figcaption { color: var(--ptm-muted); font-size: 13px; line-height: 1.8; text-align: center; }
.pta-entry iframe, .pta-entry video { display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 9; margin: 28px 0; border: 0; border-radius: 10px; background: #0a2540; }
.pta-entry .wp-video { width: 100% !important; }
.pta-entry blockquote { margin: 24px 0; padding: 4px 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--ps-primary); color: var(--ptm-ink); }
.pta-entry hr { height: 1px; margin: 32px 0; border: 0; background: var(--ptm-line); }
.ptm .pta-note { position: relative; margin: 24px 0; padding: 16px 18px; padding-inline-start: 50px; border: 1px solid #cfe3f5; border-radius: 10px; background: #f4f9fd; font-size: 16px; line-height: 2; }
.pta-note > :last-child { margin-bottom: 0; }
.pta-note::before { content: ""; position: absolute; top: 21px; inset-inline-start: 18px; width: 20px; height: 20px; background: var(--ps-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ptm .pta-note--warn { border-color: #f3d6d2; background: #fef7f6; }
.ptm .pta-note--warn::before { background: #c2410c; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zm1 15h-2v-2h2zm0-4h-2V9h2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 21h22zm1 15h-2v-2h2zm0-4h-2V9h2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.pta-entry a.pta-btn { display: inline-block; margin: 6px 0; padding: 8px 20px; border-radius: 8px; background: var(--ps-primary); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s ease; }
.pta-entry a.pta-btn:hover { background: var(--ps-primary-dark); }
.pta-entry a.pta-btn strong { color: inherit; }
.pta-table { margin: 24px 0; overflow-x: auto; border: 1px solid var(--ptm-line); border-radius: 10px; }
.pta-table table { width: 100%; margin: 0; border-collapse: collapse; border: 0; font-size: 15px; line-height: 1.85; }
.pta-table th, .pta-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--ptm-line); text-align: start; vertical-align: top; }
.pta-table th { background: var(--ptm-soft); color: var(--ptm-ink); font-weight: 700; white-space: nowrap; }
.pta-table tr:last-child td { border-bottom: 0; }
.pta-table tbody tr:nth-child(even) td { background: #fafcfe; }
.pta-entry .ps-accordion { margin: 0 0 24px; }
.pta-entry .ps-accordion .ps-accordion__item, .pta-entry .elementor-accordion .elementor-accordion-item { margin: 0 0 10px; padding-inline: 18px; border: 1px solid var(--ptm-line) !important; border-radius: 10px; background: #fff; box-shadow: none !important; transition: border-color .2s ease; }
.pta-entry .ps-accordion .ps-accordion__item.is-open, .pta-entry .elementor-accordion .elementor-accordion-item:has(.elementor-active) { border-color: #c9def0 !important; background: var(--ptm-tint); }
.pta-entry .ps-accordion .ps-accordion__item.is-open > .ps-accordion__title { color: var(--ps-primary); }
.pta-entry .ps-accordion .ps-accordion__title { padding-inline: 0; }
.pta-entry .ps-accordion__title { padding-block: 15px; color: var(--ptm-ink); font-size: 16px; font-weight: 700; line-height: 1.8; }
.pta-entry .ps-accordion__content, .pta-entry .ps-accordion__content p { font-size: 15.5px; line-height: 2; }
/* the blocks built in Elementor some articles show: as the text around them, whatever was saved in them */
.pta-entry .elementor-element { max-width: 100%; }
.pta-entry :is(.elementor-section, .e-con) { margin-block: 0 !important; padding-inline: 0 !important; --padding-inline-start: 0px; --padding-inline-end: 0px; }
.pta-entry .elementor-widget-wrap { padding: 0 !important; }
.pta-entry .elementor-section > .elementor-container { width: 100%; max-width: 100% !important; margin-inline: 0 !important; }
.pta-entry .ps-accordion__content, .pta-entry .ps-accordion__content p, .pta-entry .elementor-tab-content, .pta-entry .elementor-tab-content p { text-align: start !important; }
.pta-entry .ps-accordion .ps-accordion__content { padding-inline: 0; }
.pta-entry .elementor-accordion .elementor-tab-title { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 0 !important; border: 0; }
.pta-entry .elementor-accordion .elementor-tab-title a { color: var(--ptm-ink) !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.8; text-decoration: none; }
.pta-entry .elementor-accordion .elementor-accordion-icon { flex: none; width: auto; font-size: 12px; opacity: .55; }
.pta-entry .elementor-accordion .elementor-tab-content { padding: 0 0 16px !important; border: 0 !important; color: inherit; font-size: 15.5px; line-height: 2; }

/* who checked it */
.pta-review { display: flex; align-items: flex-start; gap: 16px; margin-top: 40px; padding: 20px; border: 1px solid var(--ptm-edge); border-radius: 12px; background: var(--ptm-tint); }
.pta-review__pic { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eef2f6; }
.ptm .pta-review__name { color: var(--ptm-ink); font-size: 15.5px; font-weight: 700; line-height: 1.8; }
.pta-review__name a { color: var(--ps-primary); text-decoration: none; }
.pta-review__name a:hover { color: var(--ps-primary-dark); }
.ptm .pta-review__job { color: var(--ptm-muted); font-size: 13px; line-height: 1.8; }
.ptm .pta-review__text { margin-top: 6px; color: var(--ptm-text); font-size: 13.5px; line-height: 1.9; }

.pta-share { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--ptm-muted); font-size: 13.5px; font-weight: 600; }
.pta .ps-share { gap: 8px; }
.pta .ps-share__link { width: 36px; height: 36px; border: 1px solid var(--ptm-line); background: #fff; color: var(--ptm-text); transition: color .15s ease, border-color .15s ease; }
.pta .ps-share__link:hover { border-color: var(--ps-primary); color: var(--ps-primary); opacity: 1; }

/* from the text to the shop */
.pta-goods { margin-top: 48px; }
.pta-goods .ptm-head { margin-bottom: 18px; }
.pta-goods__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pta-good { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #e9eef2; border-radius: 12px; background: #fff; color: var(--ptm-ink); text-decoration: none; transition: border-color .2s ease; }
.pta-good:hover { border-color: #bcd6ec; color: var(--ptm-ink); }
.pta-good__pic { display: block; margin-bottom: 10px; }
.pta-good__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.pta-good__name { display: -webkit-box; min-height: 45px; margin-bottom: 8px; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.75; transition: color .2s ease; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pta-good:hover .pta-good__name { color: var(--ps-primary); }
.pta-good__price { margin-top: auto; color: var(--ps-primary); font-size: 13px; font-weight: 700; }
.pta-good__price .woocommerce-Price-amount { color: inherit; }
.pta-good__price .woocommerce-Price-currencySymbol { margin-inline-start: 3px; }

/* comments */
.pta .ps-comments { margin-top: 48px; padding: 0; border: 0; }
.pta .ps-comments__title, .pta .comment-reply-title { display: block; margin: 0 0 18px; color: var(--ptm-ink); font-size: 21px; font-weight: 800; line-height: 1.5; }
.pta .ps-comments__list { margin: 0 0 36px; padding: 0; list-style: none; }
.pta .ps-comments__list .children { margin: 0; padding: 0; padding-inline-start: 28px; list-style: none; }
.pta .comment-body { position: relative; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--ptm-line); }
.pta .comment-author { display: flex; align-items: center; gap: 10px; color: var(--ptm-ink); font-size: 14px; font-weight: 700; }
.pta .comment-author .says { display: none; }
.pta .comment-author .fn { font-style: normal; }
.pta-av { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #eaf3fb; color: var(--ps-primary); font-size: 14px; font-weight: 700; line-height: 1; }
.pta .comment-meta { margin-bottom: 8px; }
.pta .comment-metadata, .pta .comment-meta a { color: var(--ptm-muted); font-size: 12px; text-decoration: none; }
.pta .comment-metadata { margin-inline-start: 46px; margin-top: -6px; }
.pta .comment-content { margin-inline-start: 46px; color: #2f3d4a; font-size: 14.5px; line-height: 2; }
.pta .comment-content p { margin: 0 0 8px; }
.pta .reply { margin-inline-start: 46px; }
.pta .comment-reply-link { color: var(--ps-primary); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.pta .comment-respond { margin-top: 12px; }
.pta .comment-notes, .pta .logged-in-as { color: var(--ptm-muted); font-size: 13px; line-height: 1.9; }
.pta .comment-form { gap: 0 16px; margin-inline: 0; }
.pta .comment-form > p { margin: 0 0 14px; padding: 0; }
.pta .comment-form > :is(.comment-form-author, .comment-form-email) { flex-basis: calc(50% - 8px); }
.pta .comment-form label { color: var(--ptm-ink); font-size: 13.5px; font-weight: 600; }
.pta .comment-form :is(input[type="text"], input[type="email"], textarea) { width: 100%; padding: 10px 12px; border: 1px solid #dbe3ea; border-radius: 8px; background: #fff; box-shadow: none; color: var(--ptm-ink); font-size: 14.5px; line-height: 1.8; transition: border-color .15s ease; }
.pta .comment-form :is(input[type="text"], input[type="email"], textarea):focus { border-color: var(--ps-primary); outline: 0; }
.pta .comment-form textarea { display: block; height: 150px; resize: vertical; }
.pta .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--ptm-text); font-size: 13px; }
.pta .comment-form-cookies-consent input { flex: none; width: 24px; height: 24px; margin: 0; }
.pta .comment-form-cookies-consent label { color: inherit; font-size: inherit; font-weight: 400; line-height: 1.8; }
.pta .comment-form .submit { height: 44px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--ps-primary); box-shadow: none; color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .2s ease; }
.pta .comment-form .submit:hover { background: var(--ps-primary-dark); }

/* more to read */
.pta-related { margin-top: 64px; }
.pta-related .ptm-river__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.ptm .pta-related .ptm-card .ptm-title { font-size: 15.5px; -webkit-line-clamp: 3; }

@media (max-width: 1200px) {
	.pta-head__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 45%); gap: 36px; }
	.pta-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}
@media (max-width: 1024px) {
	.pta-grid, .pta-grid--wide { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; }
	.pta-main, .pta-rail { grid-column: 1; grid-row: auto; }
	.pta-rail { position: static; margin-bottom: 24px; }
	.pta-toc { padding: 0; border-radius: 10px; }
	.pta-toc summary { position: relative; padding: 13px 16px; border-bottom: 0; cursor: pointer; }
	.pta-toc[open] summary { border-bottom: 1px solid var(--ptm-line); margin-bottom: 4px; }
	.ptm-consult--rail { display: none; }
	.ptm-consult--inline { display: flex; }
	.pta-toc summary::after { content: ""; position: absolute; top: 50%; inset-inline-end: 18px; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
	.pta-toc[open] summary::after { margin-top: -2px; transform: rotate(225deg); }
	.pta-toc ol { max-height: none; padding: 0 8px 10px; }
	.pta-related .ptm-river__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.pta { padding-bottom: 44px; }
	.pta-head { padding-bottom: 24px; }
	.pta-head__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 16px; }
	.ptm .pta-head__title { font-size: 23px; line-height: 1.55; }
	.ptm .pta-head__note { margin-top: 10px; font-size: 14.5px; line-height: 1.95; }
	.ptm .pta-by { gap: 6px 18px; margin-top: 14px; padding-top: 12px; font-size: 12.5px; }
	.pta-entry > p:first-of-type { font-size: 16.5px; }
	.pta-entry .ps-accordion .ps-accordion__item, .pta-entry .elementor-accordion .elementor-accordion-item { padding-inline: 14px; }
	.pta-head__pic { border-radius: 10px; }
	.pta-entry { font-size: 16px; line-height: 2.05; }
	.pta-entry h2 { margin-top: 36px; font-size: 21px; }
	.pta-entry h3 { margin-top: 28px; font-size: 18px; }
	.pta-entry h4 { margin-top: 22px; font-size: 16.5px; }
	.pta-entry img, .pta-entry .wp-caption { margin-block: 22px; }
	.ptm .pta-note::before { top: 19px; inset-inline-start: 14px; }
	.ptm .pta-note { padding: 14px; padding-inline-start: 44px; font-size: 15px; }
	.pta-table table { font-size: 14px; }
	.pta-table th, .pta-table td { padding: 9px 11px; }
	.pta-review { gap: 12px; margin-top: 32px; padding: 14px; }
	.pta-review__pic { width: 52px; height: 52px; }
	.pta-share { flex-wrap: wrap; gap: 10px; }
	.pta-goods { margin-top: 36px; }
	.pta-goods__grid { display: flex; gap: 10px; margin-inline: -15px; padding-inline: 15px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
	.pta-goods__grid::-webkit-scrollbar { display: none; }
	.pta-good { flex: 0 0 44vw; scroll-snap-align: start; }
	.pta .ps-comments { margin-top: 36px; }
	.pta .comment-form > :is(.comment-form-author, .comment-form-email) { flex-basis: 100%; }
	.pta-related { margin-top: 40px; }
	.pta-related .ptm-river__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
