
/* v1.0.1: Divi 5 may impose a white #main-content background with a more
   specific selector than .asr-page. Explicitly paint the search canvas,
   while leaving the global header and footer designs untouched. */
html:has(body.asr-custom-results),
body.asr-custom-results,
body.asr-custom-results #page-container,
body.asr-custom-results #et-main-area,
body.asr-custom-results #main-content.asr-page,
body.asr-custom-results main#main-content.asr-page {
    background-color: var(--asr-bg, #090909) !important;
}
body.asr-custom-results main#main-content.asr-page {
    color: var(--asr-text, #ffffff) !important;
    background-image: none !important;
}
body.asr-custom-results .asr-page .asr-heading h1,
body.asr-custom-results .asr-page .asr-section-header h2,
body.asr-custom-results .asr-page .asr-card-title,
body.asr-custom-results .asr-page .asr-card-title a,
body.asr-custom-results .asr-page .asr-query strong {
    color: var(--asr-text, #ffffff) !important;
}
body.asr-custom-results .asr-page .asr-subtitle,
body.asr-custom-results .asr-page .asr-query,
body.asr-custom-results .asr-page .asr-count {
    color: var(--asr-muted, #b5b5b5) !important;
}
body.asr-custom-results .asr-page .asr-card {
    background: var(--asr-surface, #141414) !important;
}

/* Styles scoped to plugin page to avoid overriding Divi header and footer. */
.asr-page{--asr-bg:#090909;--asr-surface:#141414;--asr-text:#fff;--asr-muted:#b5b5b5;--asr-accent:#d60016;--asr-border:#53111a;--asr-max:1240px;--asr-radius:12px;--asr-ratio:16/10;--asr-cols:3;background:var(--asr-bg);color:var(--asr-text);min-height:65vh;padding:72px 24px 100px;font-family:inherit;box-sizing:border-box}
.asr-page *{box-sizing:border-box}.asr-page a{text-decoration:none}.asr-page .asr-container{width:100%;max-width:var(--asr-max);margin:0 auto}.asr-heading{text-align:center;margin:0 auto 64px;max-width:770px}.asr-eyebrow{font-size:11px;letter-spacing:2px;color:var(--asr-accent);font-weight:800;margin-bottom:14px}.asr-page .asr-heading h1{font-size:clamp(30px,4vw,48px);line-height:1.15;color:var(--asr-text);font-weight:800;margin:0 0 14px}.asr-subtitle,.asr-query{font-size:15px;color:var(--asr-muted);margin:8px auto}.asr-query strong{color:var(--asr-text)}.asr-star{color:var(--asr-accent)}
.asr-search-form{max-width:620px;margin:28px auto 0;display:flex;align-items:stretch;border:1px solid var(--asr-border);background:var(--asr-surface);border-radius:var(--asr-radius);padding:6px}.asr-search-form input[type=search]{height:48px;min-width:0;flex:1;background:transparent!important;color:var(--asr-text)!important;border:none!important;outline:none;padding:0 16px!important;font-size:15px!important;box-shadow:none!important}.asr-search-form button{border:0!important;border-radius:calc(var(--asr-radius) - 4px)!important;background:var(--asr-accent)!important;color:#fff!important;font-size:14px!important;font-weight:700!important;cursor:pointer;padding:0 24px!important;white-space:nowrap}.asr-search-form button span{margin-left:8px}.asr-search-form button:hover{filter:brightness(1.15)}.asr-section-header{display:flex;align-items:center;gap:18px;margin-bottom:26px}.asr-section-header:after{content:"";background:var(--asr-border);height:1px;flex:1}.asr-page .asr-section-header h2{margin:0;color:var(--asr-text);font-size:24px;font-weight:800;line-height:1.3;white-space:nowrap}.asr-count{color:var(--asr-muted);font-size:13px;white-space:nowrap;order:3}
.asr-cards{display:grid;grid-template-columns:repeat(var(--asr-cols),minmax(0,1fr));gap:24px}.asr-card{background:var(--asr-surface);border:1px solid var(--asr-border);border-radius:var(--asr-radius);overflow:hidden;display:flex;flex-direction:column;min-width:0;transition:border-color .2s,transform .2s}.asr-card:hover{border-color:var(--asr-accent);transform:translateY(-3px)}.asr-thumb{display:block;width:100%;aspect-ratio:var(--asr-ratio);background:#28050b;overflow:hidden}.asr-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s}.asr-card:hover .asr-thumb img{transform:scale(1.035)}.asr-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:55px;color:var(--asr-accent);opacity:.6}.asr-card-content{padding:22px;display:flex;flex-direction:column;flex:1;gap:12px}.asr-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--asr-muted)}.asr-tag{background:var(--asr-accent);color:#fff;padding:4px 8px;border-radius:4px;text-transform:uppercase;font-weight:700;letter-spacing:.35px}.asr-type{color:var(--asr-accent);font-weight:700}.asr-page .asr-card-title{margin:0;font-size:21px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.asr-card-title a{color:var(--asr-text)!important}.asr-card-title a:hover{color:var(--asr-accent)!important}.asr-excerpt{color:var(--asr-muted);font-size:14px;line-height:1.7;margin:0}.asr-read{margin-top:auto;padding-top:6px;font-size:13px;font-weight:800;color:var(--asr-accent)!important}.asr-read span{margin-left:5px}.asr-read:hover{filter:brightness(1.4)}
.asr-layout-list .asr-cards{grid-template-columns:1fr}.asr-layout-list .asr-card{flex-direction:row}.asr-layout-list .asr-thumb{width:33%;max-width:350px;min-height:220px;aspect-ratio:auto;flex-shrink:0}.asr-layout-list .asr-card-content{padding:28px}.asr-layout-compact .asr-card-content{padding:14px;gap:9px}.asr-layout-compact .asr-card-title{font-size:17px}.asr-layout-compact .asr-excerpt{font-size:13px}
.asr-pagination{margin-top:48px}.asr-pagination ul{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;padding:0;list-style:none;margin:0}.asr-pagination li{padding:0!important;list-style:none}.asr-pagination a,.asr-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:8px 13px;border:1px solid var(--asr-border);border-radius:8px;color:var(--asr-text)!important;font-size:13px}.asr-pagination .current,.asr-pagination a:hover{background:var(--asr-accent);border-color:var(--asr-accent)}.asr-empty{padding:75px 25px;text-align:center;border:1px solid var(--asr-border);border-radius:var(--asr-radius);background:var(--asr-surface)}.asr-empty>span{font-size:65px;color:var(--asr-accent)}.asr-page .asr-empty h2{font-size:29px;color:var(--asr-text);margin:5px 0 12px}.asr-empty p{color:var(--asr-muted);font-size:15px}.asr-empty a{display:inline-block;color:var(--asr-accent)!important;font-weight:700;margin-top:18px}
@media(max-width:980px){.asr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.asr-page{padding:52px 18px 70px}.asr-heading{margin-bottom:45px}}@media(max-width:640px){.asr-cards{grid-template-columns:1fr;gap:18px}.asr-page{padding:42px 16px 65px}.asr-page .asr-section-header h2{font-size:19px;white-space:normal}.asr-section-header{flex-wrap:wrap;gap:10px}.asr-section-header:after{display:none}.asr-count{order:2}.asr-layout-list .asr-card{flex-direction:column}.asr-layout-list .asr-thumb{width:100%;max-width:none;min-height:0;aspect-ratio:var(--asr-ratio)}.asr-search-form button{padding:0 14px!important}.asr-card-content{padding:18px}.asr-page .asr-card-title{font-size:19px}}

/* v1.1.0: category archive uses the same themed canvas as search results. */
body.asr-category-archive .asr-category-page .asr-category-description {max-width:760px;line-height:1.7;margin:12px auto;color:var(--asr-muted)}
body.asr-category-archive .asr-category-page .asr-category-description p {color:inherit;margin:0 0 10px}
body.asr-category-archive #left-area,body.asr-category-archive #sidebar{display:none!important}

/* v1.2.1 Related Posts: styles scoped to the block, never header/footer. */
.asr-related{box-sizing:border-box;clear:both;background:var(--asr-bg,#000000)!important;color:var(--asr-text,#fff)!important;padding:54px 24px 70px;margin:50px auto 0;width:100%;max-width:none}
.asr-related *{box-sizing:border-box}.asr-related-container{width:100%;max-width:var(--asr-max,1240px);margin:0 auto}.asr-related .asr-section-header h2{color:var(--asr-text,#fff)!important;font-size:clamp(21px,2.5vw,27px);font-weight:800;margin:0;padding:0}.asr-related .asr-section-header:after{background:var(--asr-border,#53111a)}.asr-related .asr-star{color:var(--asr-accent,#d60016)}
.asr-related .asr-cards{grid-template-columns:repeat(var(--asr-cols,3),minmax(0,1fr))}.asr-related .asr-card{background:var(--asr-surface,#141414)!important;border-color:var(--asr-border,#53111a)!important}.asr-related .asr-card:hover{border-color:var(--asr-accent,#d60016)!important}.asr-related .asr-card-title{font-size:20px!important;padding:0;margin:0!important;line-height:1.4}.asr-related .asr-card-title a{color:var(--asr-text,#fff)!important}.asr-related .asr-card-title a:hover{color:var(--asr-accent,#d60016)!important}.asr-related .asr-meta,.asr-related .asr-excerpt,.asr-related-empty{color:var(--asr-muted,#b5b5b5)!important}.asr-related .asr-tag{background:var(--asr-accent,#d60016)!important}.asr-related .asr-read{color:var(--asr-accent,#d60016)!important}.asr-related .asr-thumb{aspect-ratio:var(--asr-ratio,16/10)}.asr-related .asr-card-content{gap:12px}.asr-related.asr-layout-list .asr-cards{grid-template-columns:1fr}.asr-related.asr-layout-list .asr-card{flex-direction:row}.asr-related.asr-layout-list .asr-thumb{width:33%;max-width:350px;min-height:220px;aspect-ratio:auto;flex-shrink:0}.asr-related.asr-layout-compact .asr-card-content{padding:14px;gap:9px}.asr-related.asr-layout-compact .asr-card-title{font-size:17px!important}
@media(max-width:980px){.asr-related .asr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.asr-related{padding:38px 16px 55px;margin-top:35px}.asr-related .asr-cards{grid-template-columns:1fr}.asr-related.asr-layout-list .asr-card{flex-direction:column}.asr-related.asr-layout-list .asr-thumb{width:100%;max-width:none;min-height:0;aspect-ratio:var(--asr-ratio,16/10)}}

/* v1.2.2 – Rajdhani applies exclusively to headings managed by this plugin. */
body .asr-page .asr-heading h1,
body .asr-page .asr-section-header h2,
body .asr-page .asr-empty h2,
body .asr-page .asr-card-title,
body .asr-page .asr-card-title a,
body .asr-related .asr-section-header h2,
body .asr-related .asr-card-title,
body .asr-related .asr-card-title a {
    font-family: 'Rajdhani', sans-serif !important;
    font-weight: 700 !important;
}
