/* Related Search module — v4.4.0 Premium */
.rscse{
  --rscse-bg:#fff;--rscse-text:#152033;--rscse-muted:#667085;--rscse-line:#e2e8f0;
  --rscse-soft:#f3f7ff;--rscse-accent:#2563eb;
  box-sizing:border-box;position:relative;isolation:isolate;clear:both;overflow:hidden;
  width:100%;max-width:760px;margin:28px auto;padding:18px 18px 16px;
  border:1px solid var(--rscse-line);border-radius:14px;background:var(--rscse-bg);color:var(--rscse-text);
  box-shadow:0 6px 22px rgba(15,23,42,.04);font-family:inherit;
}
.rscse *{box-sizing:border-box}
.rscse-head{display:flex;flex-direction:column;align-items:flex-start;clear:both}
.rscse-head h2{margin:0;color:var(--rscse-text);font-size:17px;line-height:1.28;font-weight:800;letter-spacing:.006em;text-transform:uppercase}
.rscse-head>span{display:block;width:44px;height:3px;margin-top:8px;border-radius:999px;background:var(--rscse-accent)}
.rscse-subtitle{display:block;clear:both;margin:10px 0 13px;color:var(--rscse-muted);font-size:13.5px;line-height:1.5}
.rscse-list,.rscse-layout-card .rscse-list,.rscse-layout-discover .rscse-list{display:grid;clear:both;grid-template-columns:1fr;gap:7px;width:100%;max-width:none}
.rscse-item,.rscse-layout-card .rscse-item,.rscse-layout-discover .rscse-item,.rscse-layout-magazine .rscse-item{
  display:flex;position:relative;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;
  margin:0;padding:8px 10px;border:1px solid #e6ebf2;border-radius:10px;background:#fff;color:var(--rscse-text);
  text-decoration:none;font-size:14.5px;font-weight:650;line-height:1.32;box-shadow:none;transform:none;
  transition:border-color .17s ease,background-color .17s ease,box-shadow .17s ease,color .17s ease,transform .17s ease;
}
.rscse-item:hover,.rscse-item:focus{border-color:#c9d8f5;background:#fbfdff;color:#174ea6;outline:none;box-shadow:0 3px 10px rgba(37,99,235,.055)}
.rscse-item:focus-visible{outline:3px solid rgba(37,99,235,.18);outline-offset:2px}
.rscse-query{display:flex;align-items:center;gap:9px;min-width:0;flex:1 1 auto}
.rscse-query-text{display:block;min-width:0;overflow-wrap:anywhere}
.rscse-search-icon{position:relative;display:inline-block;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:var(--rscse-soft)}
.rscse-search-icon:before{content:"";position:absolute;left:8px;top:7px;width:8px;height:8px;border:2px solid var(--rscse-accent);border-radius:50%}
.rscse-search-icon:after{content:"";position:absolute;left:17px;top:17px;width:6px;height:2px;border-radius:2px;background:var(--rscse-accent);transform:rotate(45deg);transform-origin:left center}
.rscse-arrow{flex:0 0 auto;padding-right:0;color:#64748b;font-size:18px;font-weight:300;line-height:1}
.rscse-quality{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:var(--rscse-soft);color:var(--rscse-accent);font-size:10.5px;font-weight:800}
.rscse-theme-dark{--rscse-bg:#111827;--rscse-text:#f8fafc;--rscse-muted:#a8b3c4;--rscse-line:#2a3648;--rscse-soft:#172a47;--rscse-accent:#60a5fa}
.rscse-theme-dark .rscse-item{border-color:#2a3648;background:#111827;color:var(--rscse-text)}
.rscse-theme-dark .rscse-item:hover,.rscse-theme-dark .rscse-item:focus{border-color:#375783;background:#162033;color:#bfdbfe}
@media(prefers-color-scheme:dark){
  .rscse-theme-auto{--rscse-bg:#111827;--rscse-text:#f8fafc;--rscse-muted:#a8b3c4;--rscse-line:#2a3648;--rscse-soft:#172a47;--rscse-accent:#60a5fa}
  .rscse-theme-auto .rscse-item{border-color:#2a3648;background:#111827;color:var(--rscse-text)}
  .rscse-theme-auto .rscse-item:hover,.rscse-theme-auto .rscse-item:focus{border-color:#375783;background:#162033;color:#bfdbfe}
}
.rscse-layout-minimal{padding:0;border:0;border-radius:0;box-shadow:none;overflow:visible}
.rscse-layout-minimal .rscse-list{gap:0}
.rscse-layout-minimal .rscse-item{padding:9px 2px;border-width:0 0 1px;border-radius:0}
.rscse-layout-minimal .rscse-item:last-child{border-bottom:0}
.rscse-layout-compact{padding:16px 17px}
.rscse-layout-compact .rscse-item{min-height:46px;padding:7px 9px}
.rscse-layout-card{padding:19px;border-radius:16px;box-shadow:0 10px 30px rgba(15,23,42,.055)}
.rscse-layout-card .rscse-list{gap:9px}
.rscse-layout-card .rscse-item{padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--rscse-bg) 96%,var(--rscse-accent) 4%);box-shadow:0 2px 8px rgba(15,23,42,.035)}
.rscse-layout-magazine{border-left:4px solid var(--rscse-accent);border-radius:10px}
.rscse-layout-magazine .rscse-item{min-height:48px;border-width:0 0 1px;border-radius:0;background:transparent}
.rscse-layout-magazine .rscse-item:last-child{border-bottom:0}
.rscse-layout-magazine .rscse-query-text{font-size:14.5px}
.rscse-layout-magazine .rscse-search-icon{border-radius:50%}
.rscse-layout-discover{padding:18px 18px 16px;border-radius:14px;background:linear-gradient(180deg,var(--rscse-bg),color-mix(in srgb,var(--rscse-bg) 94%,var(--rscse-accent) 6%))}
.rscse-layout-discover .rscse-item{border-radius:10px}
.rscse-layout-discover .rscse-arrow{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--rscse-soft);color:var(--rscse-accent)}
.rscse-anim-none .rscse-item{transition:none}
.rscse-anim-lift .rscse-item:hover,.rscse-anim-lift .rscse-item:focus-visible{transform:translateY(-2px)}
.rscse-anim-slide .rscse-item:hover,.rscse-anim-slide .rscse-item:focus-visible{transform:translateX(4px)}
.rscse-anim-glow .rscse-item:hover,.rscse-anim-glow .rscse-item:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--rscse-accent) 18%,transparent),0 7px 20px rgba(37,99,235,.10)}
@media(max-width:900px){.rscse{max-width:100%}}
@media(max-width:700px){
  .rscse{max-width:100%;margin:22px 0;padding:15px 13px 14px;border-radius:13px}
  .rscse-head h2{font-size:16px}.rscse-head>span{width:42px;margin-top:7px}.rscse-subtitle{margin:9px 0 12px;font-size:13px}
  .rscse-item,.rscse-layout-card .rscse-item,.rscse-layout-discover .rscse-item,.rscse-layout-magazine .rscse-item{min-height:46px;padding:7px 9px;font-size:14px;border-radius:10px}
  .rscse-search-icon,.rscse-layout-compact .rscse-search-icon{flex-basis:27px;width:27px;height:27px}
  .rscse-search-icon:before{left:8px;top:7px;width:7px;height:7px}.rscse-search-icon:after{left:16px;top:16px;width:6px}.rscse-arrow{font-size:17px}
  .rscse-layout-compact,.rscse-layout-discover{padding:14px 13px}
}
@media(prefers-reduced-motion:reduce){.rscse-item{transition:none!important}.rscse-item:hover,.rscse-item:focus-visible{transform:none!important}}

/* Dedicated search-results page */
.rscse-results-screen article.page > .entry-header,
.rscse-results-screen .site-main > article.page > .entry-header,
.rscse-results-screen .entry-title,
.rscse-results-screen .page-title,
.rscse-results-screen .wp-block-post-title,
.rscse-results-screen .ast-article-single > .entry-header{display:none!important}
.rscse-results-screen article.page,.rscse-results-screen .ast-article-single{padding-top:0!important}
.rscse-results-screen .entry-content{margin-top:0!important}
.rscse-results-page{max-width:1100px;margin:14px auto 24px;padding:0 16px}
.rscse-results-hero{padding:20px 22px;margin-bottom:16px;border:1px solid #e4e9f0;border-radius:15px;background:linear-gradient(135deg,#f8fbff 0%,#fff 70%)}
.rscse-results-kicker,.rscse-section-heading span{display:block;margin-bottom:6px;color:#2563eb;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.rscse-results-hero h1{font-size:clamp(25px,3.5vw,34px)!important;line-height:1.16;margin:0 0 7px!important}
.rscse-results-hero p{margin:0;color:#667085;font-size:14px;line-height:1.45}
.rscse-local-section,.rscse-google-section{margin:0 0 18px;padding:20px 21px;border:1px solid #e4e9f0;border-radius:15px;background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.04)}
.rscse-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
.rscse-section-heading h2{margin:0!important;color:#101828;font-size:21px!important;line-height:1.25}
.rscse-section-heading>strong{padding:5px 9px;border-radius:999px;background:#eef5ff;color:#2563eb;font-size:11px}
.rscse-local-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.rscse-local-card{overflow:hidden;border:1px solid #e7ebf0;border-radius:13px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}
.rscse-local-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,23,42,.08)}
.rscse-local-thumb{display:block;aspect-ratio:16/8.5;overflow:hidden;background:#f2f4f7}
.rscse-local-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.rscse-local-card:hover .rscse-local-thumb img{transform:scale(1.025)}
.rscse-local-body{padding:14px 15px 15px}
.rscse-local-body time{display:block;margin-bottom:6px;color:#667085;font-size:11.5px}
.rscse-local-body h3{margin:0 0 7px!important;font-size:17px!important;line-height:1.3}
.rscse-local-body h3 a{color:#101828;text-decoration:none}
.rscse-local-body h3 a:hover{color:#2563eb}
.rscse-local-body p{margin:0 0 10px;color:#667085;font-size:13.5px;line-height:1.48;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.rscse-local-link{color:#2563eb;font-size:12.5px;font-weight:750;text-decoration:none}
.rscse-local-empty{padding:20px;border-radius:11px;background:#f8fafc;color:#667085;text-align:center}
.rscse-cse-wrap{min-height:200px}
.rscse-results-message{padding:16px;border:1px solid #dcdcde;background:#fff}

@media(max-width:700px){
  .rscse-results-screen main,.rscse-results-screen .site-main,.rscse-results-screen .entry-content,.rscse-results-screen article.page{margin-top:0!important;padding-top:0!important}
  .rscse-results-screen .ast-container{padding-top:0!important}
  .rscse-results-page{margin:6px auto 16px;padding:0 12px}
  .rscse-results-hero{padding:15px 17px;margin-bottom:12px;border-radius:13px}
  .rscse-results-kicker,.rscse-section-heading span{margin-bottom:4px;font-size:10.5px}
  .rscse-results-hero h1{font-size:25px!important;line-height:1.12;margin-bottom:6px!important}
  .rscse-results-hero p{font-size:13px;line-height:1.4}
  .rscse-local-section,.rscse-google-section{padding:15px 16px;margin-bottom:12px;border-radius:13px}
  .rscse-section-heading{align-items:flex-start;gap:8px;margin-bottom:11px}
  .rscse-section-heading h2{font-size:19px!important;line-height:1.18}
  .rscse-section-heading>strong{padding:4px 8px;font-size:11px}
  .rscse-local-grid{grid-template-columns:1fr;gap:10px}
  .rscse-local-body{padding:12px 13px 13px}
  .rscse-local-body h3{font-size:16.5px!important;line-height:1.26;margin-bottom:6px!important}
  .rscse-local-body p{font-size:13px;line-height:1.43;margin-bottom:8px}
  .rscse-cse-wrap{min-height:160px}
}
