/* Scoped to the recovered page: navigation, React routes and news posts retain their styles. */
body.jpr-compatible-page #loading-screen { display: none !important; }
#jpr-page { padding: 110px 0 40px; background: #fff; color: #161616; min-height: 70vh; font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.9; overflow-wrap: anywhere; }
#jpr-page[dir="rtl"] { direction: rtl; text-align: right; }
#jpr-page *, #jpr-page *::before, #jpr-page *::after { box-sizing: border-box; }
#jpr-page .jpr-document { margin: 0; padding: 0; border: 0; background: transparent; }
#jpr-page .jpr-page-title { padding: 12px 24px 24px; text-align: center; }
#jpr-page h1 { font-size: clamp(1.5rem, 4vw, 2.3rem); color: inherit; }
#jpr-page h2, #jpr-page h3, #jpr-page h4 { color: inherit; line-height: 1.6; margin-block: 1em .6em; }
#jpr-page a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
#jpr-page a:focus-visible, #jpr-page summary:focus-visible { outline: 3px solid #e40046; outline-offset: 4px; }
#jpr-page .jpr-row { display: flex; flex-wrap: wrap; width: 100%; margin-inline: 0; padding-inline: clamp(12px, 3vw, 40px); }
#jpr-page .jpr-column { flex: 0 0 auto; min-width: 0; max-width: 100%; padding: 16px; }
#jpr-page .jpr-text { display: flow-root; }
#jpr-page p { margin-block: 0 1em; }
#jpr-page img { max-width: 100%; height: auto; }
#jpr-page .aligncenter { display: block; margin-inline: auto; }
#jpr-page iframe, #jpr-page video { max-width: 100%; }
#jpr-page table { display: block; max-width: 100%; overflow-x: auto; }
#jpr-page .jpr-button-wrap { margin-block: 12px; }
#jpr-page .jpr-button { display: inline-block; max-width: 100%; padding: 10px 20px; border: 1px solid currentColor; border-radius: 6px; color: inherit; text-decoration: none; white-space: normal; line-height: 1.8; }
#jpr-page .jpr-button:hover { text-decoration: underline; }
#jpr-page .jpr-button-block { display: block; }
#jpr-page .jpr-cta { padding: 20px; }
#jpr-page .jpr-details { border: 1px solid #ccc; border-radius: 6px; padding: 14px; margin-block: 12px; }
#jpr-page .jpr-details summary { cursor: pointer; font-weight: 700; }
#jpr-page .jpr-details > div { margin-top: 16px; }
#jpr-page .jpr-grid { display: grid; grid-template-columns: repeat(var(--jpr-columns, 3), minmax(0, 1fr)); gap: 20px; }
#jpr-page .jpr-card { border: 1px solid #ccc; padding: 14px; background: #fff; color: #161616; }
#jpr-page .jpr-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
#jpr-page .jpr-grid-links { display: flex; flex-wrap: wrap; gap: 16px; margin-block: 20px; }
#jpr-page .jpr-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
@media (max-width: 767px) {
    #jpr-page { padding-top: 90px; }
    #jpr-page .jpr-column { width: 100% !important; padding-inline: 16px !important; }
    #jpr-page .jpr-row { margin-top: 0 !important; margin-bottom: 0 !important; padding-inline: 12px !important; }
    #jpr-page .jpr-grid { grid-template-columns: 1fr; }
}
